← Back to archive

Stdle #86 · slices · 2026-08-31

What does this Go snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

package main
import "fmt"
func main() {
a := []int{1, 2}
b := []int{3, 4}
c := append(a, b...)
fmt.Println(c)
}
Slices
4 attempts left

Answer & explanation