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

Answer Posted / vijay

Calloc allocates the array of blocks of memory whearas
malloc allocates the memory of the size given as an
argument.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string data type in c++?

559


How do you invoke a base member function from a derived class in which you’ve overridden that function?

558


How many types of comments are there in c++?

551


What is pointer with example?

539


Define a pointer to a data member of the type pointer to pointer?

546






What is function overriding in c++?

580


What is setw manipulator in c++?

568


What is a binary file? List the merits and demerits of the binary file usagein C++.

706


What is the purpose of the "delete" operator?

599


What is the latest c++ version?

586


What is a pointer with example?

638


What are built-in functions? What is the syntax for the definition?

544


What is const in c++?

566


What is a flag in c++?

577


What are move semantics?

647