Friday

malloc and realloc function in C with program

Dynamic Memory Allocation:


Dynamic memory management refers to manual memory management. This allows you to obtain more memory when required and release it when not necessary.Although C inherently does not have any technique to allocate memory dynamically, there are 4 library functions defined under <stdlib.h> for dynamic memory allocation.

malloc()

calloc()

0 comments:

Post a Comment