RosettaCodeData/Task/Pointers-and-references/Go/pointers-and-references-5.go

5 lines
78 B
Go

func three() *int {
i := 3
return &i // valid. no worry, no crash.
}