Relative Content

Tag Archive for cstackmallocdynamic-memory-allocationheap

I do not understand what exactly is dynamic memory allocation

So apparently dynamic memory allocation allows memory to be allocated during runtime instead of compile time like static memory allocation. I also understand that using these functions in malloc.h we can save memory by unassigning memory blocks which are not in use by using free(). But my confusion lies in whether the following code comes under dynamic memory allocation or not.