C++20 sections · 1024 units
Open in Course

Quiz: Exception Safety

Knowledge check

Check Your Understanding

Why do RAII objects help prevent resource leaks during exception handling?

  1. A.They prevent exceptions from being thrown
  2. B.Their destructors run during stack unwinding
  3. C.They catch exceptions automatically
  4. D.They convert exceptions to error codes
Start the roadmap to answer the quizzes and solve the challenges