package main
import "fmt"
func main() {
var number1 int = 15
var number2 int = 017
var number3 int = 0xf
fmt.Println(number1, number2, number3) // ??
}
What will be printed?
These are different ways of writing the same number in different numeral systems.
The numeral system does not affect the final value.
Giving an optional prefix to the integer literal sets a non-decimal base.
For example, this is the creation of the decimal integer 15 in binary notation: