A pointer is a box that holds the address of another box. Draw it as an arrow.
Imagine a friend’s house. A value is the house itself. A pointer is a note with the house’s street address written on it. If you hand someone a photocopy of the house (pass by value) they can paint it and your house stays the same. If you hand them the address note (a pointer) they can walk there and paint your real house.
Two symbols do all the work: &x means “the address of x” (make the arrow) and *p means “go where p points” (follow the arrow, to read or write).
*p and see x change without being named.x, and why?nil pointer panics: invalid memory address or nil pointer dereference. Check p != nil first.&x and take a *int parameter instead.p (the address) and *p (the value it points to). Printing p shows an address, not your data.