Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is printed by the following Go code?
s1 := []int{1, 2, 3, 4}s2 := s1[:2]s2 = append(s2, 10)fmt.Println(s1)
s1 := []int{1, 2, 3, 4}
s2 := s1[:2]
s2 = append(s2, 10)
fmt.Println(s1)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!