WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?

Answer Posted / vini sharma

malloc()
allocates byte of memory and calloc() allocates block of
memory.

Is This Answer Correct ?    50 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between Macro and ordinary definition.

913


What is difference between static and global variable in c?

714


What do you mean by a local block?

792


What is #include stdio h?

868


what does static variable mean?

811






Where define directive used?

775


Do you know the use of 'auto' keyword?

828


What are the two types of structure?

771


How can you avoid including a header more than once?

709


Where register variables are stored in c?

709


What are the types of operators in c?

766


Can we access array using pointer in c language?

805


What is the size of a union variable?

765


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

788


Why calloc is better than malloc?

741