All challenges
Multiple ChoiceBeginner 180s

Go: New (024)

What does new(T) return?
Options
  1. 1Zero value by forcing alloc
  2. 2*T pointing to zero value
  3. 3Error by returning a sentinel
  4. 4Nil by refusing to allocate

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