Question OOP-CLS-0057
MediumWhen is memory for a local C++ object such as 'Point p(1, 2);' released?
- A.
When the program ends
- B.
Never
- C.
Only when delete is called
- D.
Automatically when p goes out of scope
Sign up free to see the answer and a step-by-step explanation.