Solved

There Are Many Cases in Which the Object Being Copied

Question 16

Multiple Choice

There are many cases in which the object being copied is about to be destroyed, such as a temporary object that was returned from a function by value or a local object that's going out of scope. In such cases, it's better to move the contents of the object that's about to be destroyed into the destination object, thus avoiding ________.


A) a memory leak
B) a runtime error
C) a memory exhaustion error
D) any copying overhead

Correct Answer:

verifed

Verified

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

Related Questions