trying_out_go/myIntPointer.go

13 lines
154 B
Go
Raw Normal View History

2023-10-16 12:44:08 -04:00
package main
import "fmt"
func myIntPointer() {
var myInt int
var myIntPointer *int
myInt = 42
myIntPointer = &myInt
fmt.Println(*myIntPointer)
}