C++20 sections · 1024 units
Open in CourseQuiz: Exception Safety
Knowledge check
Check Your Understanding
Why do RAII objects help prevent resource leaks during exception handling?
- A.They prevent exceptions from being thrown
- B.Their destructors run during stack unwinding
- C.They catch exceptions automatically
- D.They convert exceptions to error codes