Quiz · Arrays and slices · lesson 7 of 10
Quiz — a shared array and a[1:2:2]
Question 1 of 2
What does the program print?
package main
import "fmt"
func main() {
a := []int{1, 2, 3, 4}
b := a[1:3]
b[0] = 9
fmt.Println(a, len(b))
}Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.