Skip to content
Quiz · Strings · lesson 4 of 8

Quiz — bytes, runes and indexing

Question 1 of 2

What does the program print?

GO
package main

import (
    "fmt"
    "unicode/utf8"
)

func main() {
    s := "héllo"
    fmt.Println(len(s), utf8.RuneCountInString(s))
}

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