The _______ data type in Go is used to represent a single Unicode character.
- byte
- char
- int
- rune
In Go, the rune data type is used to represent a Unicode character. It's synonymous with int32 and is commonly used when dealing with Unicode characters or representing the code point of a particular character.
Loading...
Related Quiz
- Describe a strategy to handle partial updates to resources in a RESTful API.
- How do you pass a pointer to a function in Go?
- An interface in Go is a collection of _______.
- Explain a real-world scenario where handling the absence of a key in a map is crucial.
- What is a race condition, and how would you use the -race flag to detect it in a Go program?