Difference between new operator and delete operator of c++ in simple steps
Answers
Answered by
0
Answer:
When new is used to allocate memory for a C++ class object, the object's constructor is called after the memory is allocated. Use the delete operator to deallocate the memory allocated with the new operator. The new operator does not allocate reference types because they are not objects.
Similar questions