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

Write a program in C++ for Fibonacci series

664


Const char *p , char const *p What is the difference between the above two?

665


Is c++ the best programming language?

541


Can union be self referenced?

580


Tell me an example where stacks are useful?

593






Explain how to initialize a const data member.

598


Is the declaration of a class its interface or its implementation?

707


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

605


What is format for defining a structure?

590


What is the use of namespace std in C++?

623


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1867


What is the best c++ compiler for windows 10?

582


What does new in c++ do?

568


Differentiate between realloc() and free().

598


What are pointers used for c++?

573