#includeint main(){ //默认情况下是十进制 int number = 12; // 二进制(0b或者0B开头) int number2 = 0b1100; //八进制(0开头) int number8 = 014; //十六进制(0x或者0X开头) int number16 = 12; printf("%d\n", number); printf("%d\n", number2); printf("%d\n", number8); printf("%d\n", number16); return 0;}
12121212