Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the noexcept specifier tell the compiler?

  1. A The function does not throw exceptions, allowing certain optimisations
  2. B Exceptions are caught internally
  3. C The function cannot fail
  4. D All exceptions are converted to error codes
Answer

The function does not throw exceptions, allowing certain optimisations

If a noexcept function does throw, std::terminate is called. Move operations and destructors should generally be noexcept.

All C++ MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as