All challenges
Multiple ChoiceIntermediate 45s

Inline Variable ODR Guarantee

Why was `inline` extended to variables in C++17?
Options
  1. 1To make variables implicitly thread-local so each thread gets its own instance
  2. 2To allow multiple definitions of the same variable across TUs with one shared entity
  3. 3To force dynamic initialization of the variable before main runs in every TU
  4. 4To allow variables of incomplete type to be defined in more than one TU at once

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