The various dynmaic memory allocation functions available in C are
- Malloc:Allocates specified number of bytes un memory and returns the pointer to the first byte allocated.
- Calloc:Creates more than one block of memory and returns the pointer to the first byte in the first block.
Here n refers to the number of blocks
- realloc:Used to reallocate a previous allocated memory area.
- free:Used to clear previously allocated memory so that memory is used efficiently.