trying_out_go/myIntPointer.go
2023-10-16 12:44:08 -04:00

13 lines
154 B
Go

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