What is the difference between new/delete and malloc/free?
Answer Posted / neelam saini
Malloc/free do not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I learn c++ in a week?
What is private, public and protected inheritance?
Explain some examples of operator overloading?
When you overload member functions, in what ways must they differ?
Describe friend function & its advantages.
Can we define function inside main in c++?
Can we delete this pointer in c++?
Why do we use iterators?
what you know about c++?
Which is the best c++ compiler?
Can we inherit constructor in c++?
Can circle be called an ellipse?
How java is different from c and c++?
What are stacks? Give an example where they are useful.
Show the application of a dynamic array with the help of an example.