Skip to content

Commit 2def69f

Browse files
authored
There are no short integer literals
I replaced literals for _short_ integer types with literals for _medium_ integer types because there are no such literals (`0S` is not a valid short integer).
1 parent 27a2281 commit 2def69f

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 short types.
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.
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)