All challenges
Multiple ChoiceHard 45s

Static initialization order fiasco across TUs

What is the static initialization order fiasco?
Options
  1. 1Static local variables are initialized before main in a fixed, deterministic order
  2. 2The order of initialization of non-local static objects across translation units is unspecified
  3. 3Static functions defined across translation units cannot call each other before main runs
  4. 4Global constants are always initialized last, after all mutable global variables anywhere

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