C++ Language/Type/Literals/BinaryAndHexadecimal
Appearance
The number thirteen can be written in decimal (13
), hexadecimal (0x0D
), octal (015
), or binary (0B1101
).
Additional information about binary and hex literals (includes interactive examples)