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
Is it possible to have a recursive inline function in c++?
What is the benefit of c++?
Explain what are single and multiple inheritances in c++?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is the difference between a pointer and a link in c ++?
What is class and structure in c++?
Describe private, protected and public – the differences and give examples.
Why is null pointer used?
What's the "software peter principle”?
Can you please explain the difference between static and dynamic binding of functions?
What is endl c++?
Are c and c++ different?
Is c++ a dying language?
How many keywords are used in c++?
What is the use of cmath in c++?