Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++constexpr consteval constinitSingle-choice MCQ

Regarding `consteval`, `constexpr`, and `constinit` storage/evaluation semantics, which statement is precisely correct?

consteval int sq(int x) { return x * x; } constexpr int a = sq(5); int b = sq(5); // int c = sq(runtime_value); // ?