Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion hello/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,16 @@ import (
)

func main() {
fmt.Println("Hello from Go!")
intPointer := 45.31
// p is a pointer initialized with the address of intPointer
var p = &intPointer
fmt.Println("pointure", *p)
// p1 is a pointer to the address of intPointer
p1 := &intPointer
fmt.Println("pointure 2", *p1)

*p1 = *p1 / 31
fmt.Println("pointure 1:", *p1)
fmt.Println("pointure 2:", *p)
fmt.Println("value :", intPointer)
}