It is a process of allocating or deallocating the memory at run time. It is called as dynamic memory allocation. when we are working with array or string static memory allocation will be take place that is compile time memory management. when we are allocating the memory of compile we cannot extend the memory at run time, if it is not sufficient. By using compile time memory management we cannot utilize the memory properly. In implementation when we need to utilize the memory more efficiently then go for dynamic memory allocation. By using dynamic memory allocation whenever we want which type we want or how much we type that time and size and that we much create dynamically.
Dynamic memory management allocation related all predefined functions are declared in following header files-
- <alloc.h>
- <malloc.h>
- <mem.h>
- <stdlib.h>
Leave a comment