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

Answer Posted / edwin

malloc - create the memory space

calloc-calculate the memory space

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of setprecision in c++?

533


Do class declarations end with a semicolon?

589


Is ca high or low level language?

575


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

562


What is the use of cmath in c++?

578






How do you differentiate between overloading the prefix and postfix increments?

580


What are the types of array in c++?

608


What are maps in c++?

490


What is the difference between #import and #include?

541


Refer to a name of class or function that is defined within a namespace?

588


Which one is better- macro or function?

638


Which software is used to run c++ program?

542


Difference between pointer to constant and constant pointer to a constant. Give example.

628


Explain data encapsulation?

597


what are the decision making statements in C++? Explain if statement with an example?

648