All challenges
Code AnalysisHard 60s

static_cast vs dynamic_cast downcast

Class Base has a virtual function; Derived adds members. Given `Base* b = new Base;` what happens with `Derived* d = static_cast<Derived*>(b); d->extra = 1;`?

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.

Play this in a 3-minute battle