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

Consider this code. What is the status of this program under C++20?

int read_config(); // runtime function constinit int g = read_config(); // line A constexpr int square(int x) { return x * x; } constinit int h = square(7); // line B