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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
When is memory for a local C++ object such as 'Point p(1, 2);' released?
When the program ends
Never
Sign up free to see the answer and a step-by-step explanation.
Only when delete is called
Automatically when p goes out of scope