Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question for the C++ gurus
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00368531
Message ID:
00368653
Views:
15
Charlie,

The stack is for LOCAL memvars when you exit a routine variables on the stack just disappear when the stack pointer is restored to the callers stack frame. The heap is usually used for large things because stack space is usually limited to 64k.

>To satisfy my curiosity, I've made the commitment to learn C++. The book I'm studying talks a lot about allocating memory on the stack and on the heap. While I understand the implications of doing such, the book never really says when it is more appropriate to use the stack or the heap. So, under what conditions should I use the stack and what conditions should I use the heap?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform