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 is undefined behaviour in C++?

  1. A Behaviour the standard imposes no requirements on, allowing the compiler to assume it never occurs
  2. B A runtime error message
  3. C A compiler warning
  4. D Platform-specific but well-defined behaviour
Answer

Behaviour the standard imposes no requirements on, allowing the compiler to assume it never occurs

Because the compiler may optimise on the assumption UB cannot happen, symptoms often appear far from the actual defect.

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