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
Difference between pointer to constant vs. Pointer constant
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
How many types of modularization are there in c++?
What is the difference between structures and unions?
What are the stages in the development cycle?
What is functions syntax in c++?
Difference between a copy constructor and an assignment operator.
Is c++ primer good for beginners?
How do you decide which integer type to use?
How can an improvement in the quality of software be done by try/catch/throw?
What is the use of 'this' pointer?
Will the following program execute?
Write my own zero-argument manipulator that should work same as hex?
What is the use of turbo c++?
Explain some examples of operator overloading?