Memory Management in C | Q - 6

Last Updated :
Discuss
Comments

What is the key difference between malloc() and calloc()?


malloc() is faster

calloc() doesn't require casting

malloc() initializes memory to zero


calloc() initializes memory to zero

Tags:
Share your thoughts in the comments