Intermediate
C++
Q100 / 100
What is exception safety in C++ and what are the three guarantees?
Correct! Well done.
Incorrect.
The correct answer is B) Basic: no leaks on exception; Strong: state unchanged on exception; Nothrow: never throws
B
Correct Answer
Basic: no leaks on exception; Strong: state unchanged on exception; Nothrow: never throws
Explanation
The three exception safety guarantees: Basic (no resource leaks), Strong (commit-or-rollback), Nothrow (noexcept). RAII provides basic safety automatically.
Progress
100/100