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

Answer Posted / shweta

calloc initializes memory with 0 while malloc doesn't
initializes.

Is This Answer Correct ?    25 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers used for c++?

565


Who invented turbo c++?

594


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

575


Explain the properties and principles of oop.

523


What parameter does the constructor to an ofstream object take?

600






What are the implicit member functions of class?

589


Why do we need templates?

534


Is eclipse good for c++?

532


Write bites in Turbo c++ Header ("Include") Files.

676


What is the best c++ compiler?

584


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

602


What is a pointer how and when is it used?

565


Are vectors passed by reference c++?

509


What are the three forms of cin.get() and what are their differences?

618


When should we use multiple inheritance?

604