There are four library functions in C for dynamic memory allocation and these are as follows -
malloc() - Allocates requested size of bytes and returns a pointer first byte of allocated space.
calloc() - Allocates space for an array elements, initializes to zero and then returns a pointer to memory.
free() - dellocate the previously allocated space.
realloc() - Change the size of previously allocated space.