+ 3
What's dynamic memory?
plz help me
3 Answers
+ 3
The process of allocating memory at runtime is known as dynamic memory allocation. Library routines known as "memory management functions" are used for allocating and freeing memory during execution of a program.Â
+ 1
memory allocated during runtime
+ 1
the memory space allocated at runtime
int a[10]; //this is static allocation(static memory)
if all the 10 are not used then the remaining memory is wasted so for save memory space dynamic allocation is used.
dynamic allocation is done at runtime and as per requirements..
malloc,calloc, are used for dynamic memory allocation.