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

Check for Balanced Parentheses using Stack?

1 Answers  


Explain the difference between new() and malloc() in c++?

0 Answers  


How is c++ different from java?

0 Answers  


Explain all the C++ concepts using examples.

0 Answers   InterGraph,


Difference between pointer to constant vs. Pointer constant

0 Answers  






What is array in c++ pdf?

0 Answers  


What compiler was used?

6 Answers   Intel,


What are class and object in C++?

1 Answers  


Does a derived class inherit or doesn't inherit?

0 Answers  


Explain the scope resolution operator?

2 Answers  


What is a float in c++?

0 Answers  


What is the precedence when there is a global variable and a local variable in the program with the same name?

0 Answers  


Categories