Home / Questions / Distinguish between malloc() and calloc() memory allocation.
Explanatory Question

Distinguish between malloc() and calloc() memory allocation.

👁 815 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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