All challenges
Multiple ChoiceIntermediate 30s

Value vs Pointer Receiver

A method with a value receiver can:
Options
  1. 1Modify the caller's value, since it aliases the receiver
  2. 2Only be called on pointers, never plain values
  3. 3Never be exported, staying private to the package
  4. 4Modify only a copy; caller's value is unchanged

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