ios - 0X100000000LL 什么意思? 1?
迷茫
迷茫 2017-04-18 09:25:20
0
2
1042
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
巴扎黑

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类型
刘奇

0X100000000LL represents a long integer in hexadecimal
Converted to decimal, it is 4294967296, which is 2 to the 32nd power

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template