What is the difference between new/delete and malloc/free?



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

Post New Answer

More C++ General Interview Questions

What is iomanip c++?

0 Answers  


Distinguish between a # include and #define.

0 Answers  


Which is better turbo c++ or dev c++?

0 Answers  


What are the advantages of prototyping?

0 Answers  


Explain virtual destructor?

0 Answers  






Explain the extern storage classes in c++.

0 Answers  


What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }

4 Answers  


How come you find out if a linked-list is a cycle or not?

0 Answers  


What is null pointer and void pointer?

0 Answers  


Explain method of creating object in C++ ?

0 Answers   Wipro,


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

0 Answers  


What is a try block?

0 Answers  


Categories