Skip to content
Quiz · First program · lesson 7 of 8

Quiz — a function call

What does the program print?

GO
package main

import "fmt"

func f(x int) int {
    return 1 + x*2
}

func main() {
    fmt.Println(f(f(2)))
}

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