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

Can we sort map in c++?

581


Describe protected access specifiers?

665


Explain stack & heap objects?

619


What is c++ coding?

636


What is #include iostream h in c++?

594






What are the rules for naming an identifier?

547


What are the benefits of c++?

551


What is static class data?

565


What is the difference between the functions rand(), random(), srand() and randomize()?

714


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

571


Explain how functions are classified in C++ ?

790


Why do we use iterators?

607


What are special characters c++?

550


What is :: operator in c++?

562


You want to link a c++ program to c functions. How would you do it?

524