巴扎黑2017-04-18 09:27:20
ll is an integer constant followed by a suffix
General suffixes are:
Unsigned number u U
Floating point number f F
Long integer l L
Long integer LL ll
Reason for using suffix
float f = 3.22
系统默认3.22 是double 类型,所以赋值过程中进行一次强制类型转换 double -> float
float f = 3.22f;
加上后缀就会存在转换,明确告诉系统是float类型
怪我咯2017-04-18 09:27:20
0X100000000LL represents a long integer in hexadecimal
Converted to decimal, it is 4294967296, which is 2 to the 32nd power