This question is not bounded to programming. It is more concerned with operational system itself.
Well, i have problem solving one profesor's question... It is constantly repeted in exam, but i can't find solution or answer as well. (The book doesn't say anything about it!)
Question goes: Why do we use memory heap to allocate classes, but not built-in types (int, char etc.)?
Please, whole generation of young programmers is counting on your help!!!
morb
0
Newbie Poster
Recommended Answers
Jump to Post>Why do we use memory heap to allocate classes, but not built-in types (int, char etc.)?
Bad question. Sometimes objects are better placed on the "stack", and sometimes they're better placed on the "heap". Provided the language doesn't force you into one or the other for internal reasons such as …
All 4 Replies
Narue
5,707
Bad Cop
Team Colleague
morb
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
morb
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.