C++ Language/Type/Literals/BinaryAndHexadecimal

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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)