66. constexpr-i

Question.4

A constexpr function is called with a runtime variable:

constexpr int square(int x) { return x * x; }

int sensor_val = read_adc();
int result = square(sensor_val);

What happens?

Need Help? Refer to the Quick Guide below

Select Answer