Skip to content

Commit 4ca083e

Browse files
author
Colin Robertson
authored
Update numeric-boolean-and-pointer-literals-cpp.md
Swap medium for long long, and add binary as an option.
1 parent 2def69f commit 4ca083e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/numeric-boolean-and-pointer-literals-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Sometimes it's important to tell the compiler how to interpret a literal, or wha
2222

2323
## Integer literals
2424

25-
Integer literals begin with a digit and have no fractional parts or exponents. You can specify integer literals in decimal, octal, or hexadecimal form. You can specify signed or unsigned types, and long or medium types.
25+
Integer literals begin with a digit and have no fractional parts or exponents. You can specify integer literals in decimal, binary, octal, or hexadecimal form. You can optionally specify an integer literal as unsigned, and as a long or long long type, by using a suffix.
2626

2727
When no prefix or suffix is present, the compiler will give an integral literal value type **`int`** (32 bits), if the value will fit, otherwise it will give it type **`long long`** (64 bits).
2828

0 commit comments

Comments
 (0)