数字后缀简称

And*_*uel 14 c c++

可能重复:
如何在C++中编写短文字?

我可以ll用来代表一个很长的数字,我可以u用来代表一个无符号的数字等.

short类型后缀是否有数字?

Joa*_*son 14

C++标准只给出了这些整数后缀(2.13.1)

unsigned-suf?x: one of
u U
long-suf?x: one of
l L
long-long-suf?x: one of
ll LL
Run Code Online (Sandbox Code Playgroud)

所以不,短裤没有后缀.


oua*_*uah 5

short,C中没有整数常数后缀。

在大多数表达式中,short值被提升为一个值,int因此它并不是那么有用。您可以将int整数常数强制转换为short,但使用整数提升规则,则有可能将其提升为int