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 constexpr indicate?

  1. A The value or function can be evaluated at compile time
  2. B The variable is constant at runtime only
  3. C The function is inline
  4. D The value is stored in read-only memory
Answer

The value or function can be evaluated at compile time

constexpr moves computation to compile time where possible, and const only promises the value will not be modified.

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