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
Why pointer is used in c++?
Differentiate between an array and a list?
What are separators in c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What do you mean by function pointer?
Is java easier than c++?
Why is c++ so fast?
Write about all the implicit member functions of a class?
What is the array and initializing arrays in c++?
How is static data member similar to a global variable?
What does new do in c++?
In a function declaration, what does extern mean?
Is it possible to use a new for the reallocation of pointers ?
Why is c++ awesome?
What is virtual destructor? What is its use?