Multiple ChoiceHard 30s
Typed Nil Interface
var p *T = nil; var i interface{} = p; i == nil is:
Options
- 1panics — it dereferences a nil interface value
- 2false — the interface has a type but nil value
- 3Compile error — the comparison is disallowed
- 4true — the interface holds no concrete value
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.