Code AnalysisHard 60s
constexpr virtual dispatch output
struct B{ virtual constexpr int f() const {return 1;} };
struct D:B{ constexpr int f() const override {return 2;} };
constexpr int g(){ D d; B& b=d; return b.f(); }
constexpr int r=g();
What is r?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.