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

What is a set in c++?

533


Why is c++ called oops?

558


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

658


Which is most difficult programming language?

582


Do you know what are pure virtual functions?

640






We use library functions in the program, in what form they are provided to the program?

601


How the endl and setw manipulator works?

560


What is singleton class in c++?

595


What is private public protected in c++?

553


What character terminates all character array strings a) b) . c) END

672


Can class objects be passed as function arguments?

609


Briefly describe a B+ tree. What is bulk loading in it?

804


What are the classes in c++?

641


What is singleton pattern in c++?

548


How can I improve my c++ skills?

559