← Back to archive

Stdle #176 · defer · 2026-11-29

What does this Go snippet output?

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

package main
import "fmt"
func main() {
defer fmt.Print("!")
defer fmt.Print("c")
defer fmt.Print("b")
defer fmt.Print("a")
fmt.Print("> ")
}
Defer
4 attempts left

Answer & explanation