All challenges
Multiple ChoiceIntermediate 45s

ODR violation no diagnostic

A subtle ODR violation (e.g. same class defined differently in two TUs) often results in:
Options
  1. 1Undefined behavior with no required diagnostic — the linker may silently pick one definition, causing hard-to-find bugs.
  2. 2A guaranteed compile-time error, because every conforming compiler must diagnose the mismatch.
  3. 3A guaranteed link-time duplicate-symbol error, since both definitions reach the linker intact.
  4. 4Automatic reconciliation of the two definitions, with the linker merging them into one class.

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