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 |
What is runtime polymorphism in c++?
What is scope resolution operator in c++ with example?
Why can templates only be implemented in the header file?
Why do we need function?
How would you call C functions from C++ and vice versa?
What do you mean by global variables?
What is a friend function in c++?
What is an incomplete type?
Is it possible to provide default values while overloading a binary operator?
Differentiate between a constructor and a method in C++.
why we cant create array of refrences
What is a pdb file?