Understanding malloc() and free() with their implementation on an array in C

malloc() function is used for getting memory allocated from Heap section of memory. Heap is a memory section, beside Stack, that is used to store the application/process data at run time. The Stack is at top of memory area allocated to a process whereas Heap is below the Stack; The stack grows downward while Heap … Continue reading Understanding malloc() and free() with their implementation on an array in C