Number of copied elements

Report a typo

What will the program print in this case?

var s1 = []int{1, 2, 3, 4, 5, 6}
var s2 []int

var n = copy(s2, s1)
fmt.Println(n)
Enter a number
___

Create a free account to access the full topic