Solution :
The C library function void *calloc(size_t nitems, size_t size) allocates the requested memory and returns a pointer to it just like the void *malloc(size_t size) The difference in malloc and calloc is that malloc does not set the memory to zero where as calloc sets allocated memory to zero. Both return void*, which is a generic pointer that can point to any type of data