What is the difference between malloc() and calloc() in C Language?

calloc()malloc()
DescriptionThe malloc() function allocates a single block of requested memory.The calloc() function allocates multiple blocks of requested memory.
InitializationIt initializes the content of the memory to zero.It does not initialize the content of memory, so it carries the garbage value.
Number of argumentsIt consists of two arguments.It consists of only one argument.
Return valueIt returns a pointer pointing to the allocated memory.It returns a pointer pointing to the allocated memory.