Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions



This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
In C language we have memory allocation methods/functions called calloc() and malloc(). Memory is allocated in terms of bytes in case of malloc(). calloc function allocates in terms of multiples of some size. If we want to allocate memory for 100 structured elements or array, we use calloc. calloc has two parameters and malloc has one.

1 5 1
Calloc() takes two arguments but malloc() takes only one argument. Malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to zero .Byte of memory is allocated by malloc(), whereas block of memory is allocated by calloc().
1 5 1
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts