C++20 sections · 1024 units
Open in Course

Quiz: Destructors and RAII

Knowledge check

Check Your Understanding

When does the destructor run for a local object?

  1. A.When the object goes out of scope
  2. B.When the program ends
  3. C.When you explicitly call it
  4. D.When the constructor finishes
Start the roadmap to answer the quizzes and solve the challenges