Skip to content
Quiz · Arrays and slices · lesson 5 of 10

Quiz — make, append and slices

Question 1 of 2

What does the program print?

GO
package main

import "fmt"

func main() {
    s := make([]int, 3)
    s = append(s, 7)
    fmt.Println(len(s), s)
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way