[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppMemory
There are five major distinct memory areas [1]:
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppMemory
(C++) memory
The physical space your computer uses to store values.There are five major distinct memory areas [1]:
- Const data: stores values known at compile-time
- Stack: stores automatic variables
- Free store: dynamic memory allocated/freed using new and delete
- Heap: dynamic memory allocated/freed using malloc and free
- Global/static: global and static variables that are initialized at run-time.
Links
References
- Herb Sutter. Exceptional C++. 2000. ISBN: 0-201-61562-2. Item 35: Memory management.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
