Both allocates memory from heap area/dynamic memory. By default calloc fills the allocated memory with 0’s.