Skip to content
Quiz · Errors · lesson 5 of 11

Quiz — strconv.Atoi

What does the program print?

GO
package main

import (
    "fmt"
    "strconv"
)

func main() {
    n, err := strconv.Atoi("12a")
    fmt.Println(n, err != nil)
}

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