Скрининг собеседование Golang Middle Январь 2025
Что выведет?
func a() {
x := []int{}
x = append(x, 0)
x = append(x, 1)
x = append(x, 2)
y := append(x, 3)
z := append(x, 4)
fmt.Println(x, y, z)
}
func main() {
a()
}Что выведет?
func a() {
x := []int{}
x = append(x, 0)
x = append(x, 1)
x = append(x, 2)
y := append(x, 3)
z := append(x, 4)
fmt.Println(x, y, z)
}
func main() {
a()
}