When the allocation of memory performs at the compile time, then it is known as static memory. When the memory allocation is done at the execution or run time, then it is called dynamic memory allocation.
Read moreWhat is dynamic memory allocation and its types?
To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. These functions are defined in the <stdlib. h> header file.
Read moreWhat is dynamic memory allocation in C with example?
The Dynamic memory allocation enables the C programmers to allocate memory at runtime . The different functions that we used to allocate memory dynamically at run time are − malloc () − allocates a block of memory in bytes at runtime. calloc () − allocating continuous blocks of memory at run time.
Read more