Description
The malloc() function allocates a single block of requested memory.
The calloc() function allocates multiple blocks of requested memory.
Initialization
It initializes the content of the memory to zero.
It does not initialize the content of memory, so it carries the garbage value.
Number of arguments
It consists of two arguments.
It consists of only one argument.
Return value
It returns a pointer pointing to the allocated memory.
It returns a pointer pointing to the allocated memory
Sandhya Answered question June 27, 2023
							malloc() function creates a single block of memory of a specific size.
calloc() function assigns multiple blocks of memory to a single variable.
Sandhya Answered question June 27, 2023
				