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

Regarding consteval ('immediate') functions, which statement correctly describes the under-the-hood constraint the compiler enforces?

consteval int sq(int x) { return x * x; } int runtime(int n) { return sq(n); } // is this valid?