This question already has an answer here:
Just what the title says, "What is the technical definition of dynamic storage in C++?" I'm curious as to how to discuss dynamic memory allocation on the heap without making any mistakes in my explanation.
This question already has an answer here:
Just what the title says, "What is the technical definition of dynamic storage in C++?" I'm curious as to how to discuss dynamic memory allocation on the heap without making any mistakes in my explanation.
From the The C++ Programming Language: Special Edition
Detailed Explaination
The heap is a bunch of memory that can be used dynamically.
Generally, the dynamic memory allocator (malloc, new, etc.) starts at the end of memory and works backwards.