C++20 sections · 1024 units
Open in CourseQuiz: Stack Unwinding
Knowledge check
Check Your Understanding
What happens to local objects in functions that are exited during stack unwinding?
- A.They are only destroyed if the exception is caught
- B.They are left in memory until program termination
- C.Their destructors are skipped to exit faster
- D.Their destructors are called in reverse construction order