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

Answer Posted / gallanticscorp

calloc means alloting memory dynamically
malloc means alloting memory at first and it is fixed

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show polymorphism in C++?

816


what is oops and list its features in c++?

734


What does ios :: app do in c++?

763


Explain the volatile and mutable keywords.

809


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

937






What is stream and its types in c++?

746


Can comments be longer than one line?

799


Write about a nested class and mention its use?

812


What is an adaptor class or wrapper class in c++?

785


Can non graphic characters be used and processed in C++?

896


why and when we can declar member fuction as a private in the class?

1809


What is the full form of stl in c++?

874


Do you know the use of vtable?

838


What's the most powerful programming language?

773


What is c++ hiding?

855