Answers

2014-08-25T00:40:09+05:30

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
2014-08-26T11:42:03+05:30
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