Sobes.tech
Junior — Senior

What output will the console produce when executing example №66

livecode

Task condition

Determine what text will appear in the console after running the following program:

import ("fmt"
        )

func main(){
       v:=5
       p:=&v


       fmt.Printf("%v\n", *p)
       changePointer(p)
       fmt.Printf("%v\n", *p)
}

func changePointer(p *int) {
    v:=3
    p =&v
}