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 a tuple c++?
What is the output of the following program? Why?
What is malloc in c++?
What is an adaptor class or Wrapper class?
What is the difference between *p++ and (*p)++ ?
What is the size of pointer ? Also size of pointer in 64 bit pointer
What does it mean to declare a member function as static?
What are pointer-to-members in C++? Give their syntax.
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
Is set c++?
How much do coding jobs pay?
Can I learn c++ without knowing c?