How to allocate memory in C?

To solve this issue, you can allocate memory manually during run-time. This is known as dynamic memory allocation in C programming. To allocate memory dynamically, library functions are malloc (), calloc (), realloc () and free () are used. These functions are defined in the <stdlib.h> header file.
For More Information Please Refer:
You May Also Like to Read: