Solved

Which of the Following Is Not a Disadvantage of Default

Question 33

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents