411 REFERENCE · Wikibooks
C++ Language/Std/CRuntime/HeapMemory
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
In C++, a program's data is stored in one of two regions of system memory.
Local variables and function parameters are obtained from the "memory stack", where that usage will be "popped off the stack" when the function ends.
Other data can be dynamically allocated from the system's "memory heap".
Heap memory will persist until it is manually deallocated.
Allocation
Memory Manipulation
Leaks