All challenges
Multiple ChoiceIntermediate 30s

sizeof in Function

In func(int a[10]), sizeof(a) evaluates to:
Options
  1. 1The full array length declared at the call site
  2. 2The constant 10 as the original declared length
  3. 3The total 40 bytes for all ten stored elements
  4. 4The size of a pointer on that platform

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