C++20 sections · 1024 units
Open in CourseQuiz: Destructors and RAII
Knowledge check
Check Your Understanding
When does the destructor run for a local object?
- A.When the object goes out of scope
- B.When the program ends
- C.When you explicitly call it
- D.When the constructor finishes