What is the difference between new/delete and malloc/free?
Answer / 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 |
What are separators in c++?
Write about an iterator class?
What happens when you make call 'delete this;'?
What is c++ hash?
What do you mean by overhead in c++?
Differences between private, protected and public and give examples.
Why is it called c++?
write a C++ programming using for loop: * * * * * * * * * *
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
How do we implement inheritance in c++?
Can java be faster than c++?
Why can’t you call invariants() as the first line of your constructor?