Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
Exceptions
What happens when an exception tries to leave a noexcept function?
from Exceptions
C++23 (GCC 13.3.0)
intermediate
1 min
What happens when an exception tries to leave a noexcept function?
std::terminate is called.
The nearest outer catch handles it normally.
The compiler always rejects the function body.
The exception is converted into an error code.
Check
Ask AI about this kata
Report an error
previous kata
A constructor throws after two data members finished construction. Which destructors run?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload