All challenges
Multiple ChoiceIntermediate 30s

Go: Pointer Receiver

func (p *Point) Scale(f float64) uses:
Options
  1. 1Value receiver (mutates a temporary copy only)
  2. 2Interface receiver (dispatch via method table)
  3. 3Nil receiver (safe even when p is nil)
  4. 4Pointer receiver (can modify original)

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