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 |
Check for Balanced Parentheses using Stack?
Explain the difference between new() and malloc() in c++?
How is c++ different from java?
Explain all the C++ concepts using examples.
Difference between pointer to constant vs. Pointer constant
What is array in c++ pdf?
What compiler was used?
What are class and object in C++?
Does a derived class inherit or doesn't inherit?
Explain the scope resolution operator?
What is a float in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?