logo

Crowdly

Browser

Add to Chrome

What is printed by the following Go code? s1 := make([]int, 2, 2) s1[0], s1[1] =...

✅ 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 := make([]int, 2, 2)

s1[0], s1[1] = 1, 2

s2 := append(s1, 3)

s2[0] = 10

fmt.Println(s1)

❌
✅
❌
❌
More questions like this

Want instant access to all verified answers on lms.softserve.university?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome