package main
import "fmt"
func main() {
var n int
var p *int
var pp **int
n = 99
p = &n
pp = &p
fmt.Println("n:", n)
fmt.Println("p:", p)
fmt.Println("pp:", pp)
fmt.Println("\n")
fmt.Println("&n:", &n)
fmt.Println("&p:", &p)
fmt.Println("&pp:", &pp)
fmt.Println("\n")
fmt.Println("*p:", *p)
fmt.Println("*pp:", *pp)
fmt.Println("**pp:", **pp)
}
/*
run:
n: 99
p: 0xc000092010
pp: 0xc000094018
&n: 0xc000092010
&p: 0xc000094018
&pp: 0xc000094020
*p: 99
*pp: 0xc000092010
**pp: 99
*/