Values & References2 / 15
Up next

& and *

package main

import "fmt"

func main() {
	n := 42
	// & takes the address; * reads or writes through it
	p := &n
	fmt.Println(*p)
	*p = 100
	fmt.Println(n)
}
What you're solving

take an address, read through it