Solved

What Happens When You Define a Class That Used Dynamic

Question 44

Multiple Choice

What happens when you define a class that used dynamic memory allocation and define a destructor but no copy constructor?


A) If an object of the class is plugged in for a call-by-value parameter, when the function ends, the parameter's dynamic memory is returned to the freestore at the end of the function execution.
B) When an object that was used as an argument for a call-by-value parameter goes out of scope, it will cause a run-time error.
C) It is possible to modify the values in the argument in the function.
D) All of the above
E) None of the above

Correct Answer:

verifed

Verified

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

Related Questions