Intermediate
C++
Q54 / 100
What is constexpr?
Correct! Well done.
Incorrect.
The correct answer is B) A specifier enabling functions and variables to be evaluated at compile time
B
Correct Answer
A specifier enabling functions and variables to be evaluated at compile time
Explanation
constexpr int factorial(int n) { ... } may be evaluated at compile time when called with a constant argument, producing zero runtime overhead.
Progress
54/100