What is the difference between "calloc" and "malloc"?

Answer Posted / samveethsingh

malloc:
malloc create the single block of given size by user
calloc:
calloc creates multiple blocks of given size

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many characters are recognized by ANSI C++?

900


What is data type in c++?

559


What are special characters c++?

566


In the derived class, which data member of the base class are visible?

644


What is function prototyping? What are its advantages?

593






Can union be self referenced?

580


What does it mean to declare a member function as static?

611


Is there any function that can skip certain number of characters present in the input stream?

587


What is a dll entry point?

563


How do you define a class in c++?

646


When should overload new operator on a global basis or a class basis?

615


How do you generate a random number in c++?

605


What is difference between c++ and c ++ 14?

578


What are friend classes?

617


What are member functions used in c++?

562