What is the Heap memory?
What is the Heap memory?
A region of your computer's memory that is NOT automatically managed for you, and is not as tightly managed by the CPU. It is a more free-floating region of memory (and larger). To allocate memory on the Heap (in C), you must use function calls such as malloc( ) or calloc( ), which are built-in C functions. Once you have allocated memory on the heap, you are responsible for using free( ) to deallocate that memory once you don't need it anymore. If you fail to do this, your program will have a memory leak, which means memory will still be set aside and unavailable for your other processes.