Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func main(){
f := 100
x := &f
fmt.Printf(" value of f is %d and the address where f is stored %x \n", f, x);
*x = *x * 2
fmt.Printf(" value of f is %d and the address where f is stored %x \n", f, x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment