Question

Q6: Which of the following is not a disadvantage of default memberwise copy with objects containing pointers?
a. Having the possibility of leaving a dangling pointer.
b. Allowing both objects to point to the same dynamically allocated storage.
c. Allowing the destructor of one object to be called while leaving the second pointer, to the same memory location, intact.
d. Requiring the explicit overloading of the assignment operator.

Answer

This answer is hidden. It contains 57 characters.