Question #148

Author: admin
tags: Go  
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?
15 17 f
15 017 0xf
15 15 15
15 17 16
15 17 f
16 16 16
17 17 17
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:
var number4 int = 0b1111
Rate the difficulty of the question:
easyhard