All topics / Pointers and References

Pointers and References

A pointer or reference is a variable holding a memory address instead of a value — the idea underneath sharing, mutation, and half the bugs that make you say 'but I didn't touch that variable.'

  1. A box with an address instead of a value
  2. Pointers vs. references across languages
  3. The classic gotchas