What is the output of the following code snippet?package mainimport "fmt"func main() { x := 1 y := &x fmt.Println(*y) *y = 2 fmt.Println(x)}

Comments and Answers (2)

Li

Li

need help, explain answer

Andy

Andy

What is the correct solution?

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}