All challenges
Multiple ChoiceBeginner 30s

Go: Struct Declaration

type Point struct { X, Y int } defines:
Options
  1. 1An interface with only method sets
  2. 2A slice with a nil backing array
  3. 3A struct with fields X and Y
  4. 4A map with string keys and ints

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