All challenges
Multiple ChoiceIntermediate 45s

decltype of a parenthesized id-expression

Given an lvalue int x, what is decltype((x)) compared to decltype(x)?
Options
  1. 1Both are int
  2. 2decltype((x)) is int while decltype(x) is int&
  3. 3decltype((x)) is int& while decltype(x) is int
  4. 4Both are int&

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