trying_out_go/playground/myIntPointer.go

13 lines
154 B
Go
Raw Normal View History

package main
import "fmt"
func myIntPointer() {
var myInt int
var myIntPointer *int
myInt = 42
myIntPointer = &myInt
fmt.Println(*myIntPointer)
}