What is the difference between "calloc" and "malloc"?
Answer Posted / samveethsingh
malloc:
malloc create the single block of given size by user
calloc:
calloc creates multiple blocks of given size
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we change the basic meaning of an operator in c++?
What are the vectors in c++?
What is virtual destructor? What is its use?
Explain function overloading
Define the process of handling in case of destructor failure?
What is c++ map?
Is it possible to provide default values while overloading a binary operator?
What is the use of dot in c++?
What is the full name of logo?
How does class accomplish data hiding in c++?
Explain the differences between private, public and protected and give examples.
Distinguish between new and malloc and delete and free().
What are structures and unions?
What is the type of this pointer in c++?
What is the difference between mutex and binary semaphore?