Skip to content
Quiz · Functions as values · lesson 6 of 12

Quiz — defer order and arguments

Question 1 of 2

What does the program print?

GO
package main

import "fmt"

func main() {
    defer fmt.Print(1)
    defer fmt.Print(2)
    defer fmt.Print(3)
    fmt.Print("go")
}

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