This is a good overview:
http://reference.jumpingmonkey.org/programming_languages/objective-c/types.html
or run this code
NSLog(
@"Primitive sizes:"
)
;
NSLog(
@"The size of a char is: %d."
, sizeof(
char
)
)
;
NSLog(
@"The size of short is: %d."
, sizeof(
short
)
)
;
NSLog(
@"The size of int is: %d."
, sizeof(
int
)
)
;
NSLog(
@"The size of long is: %d."
, sizeof(
long
)
)
;
NSLog(
@"The size of long long is: %d."
, sizeof(
long
long
)
)
;
NSLog(
@"The size of a unsigned char is: %d."
, sizeof(
unsigned char
)
)
;
NSLog(
@"The size of unsigned short is: %d."
, sizeof(
unsigned short
)
)
;
NSLog(
@"The size of unsigned int is: %d."
, sizeof(
unsigned int
)
)
;
NSLog(
@"The size of unsigned long is: %d."
, sizeof(
unsigned long
)
)
;
NSLog(
@"The size of unsigned long long is: %d."
, sizeof(
unsigned long
long
)
)
;
NSLog(
@"The size of a float is: %d."
, sizeof(
float
)
)
;
NSLog(
@"The size of a double is %d."
, sizeof(
double
)
)
;
NSLog(
@"Ranges:"
)
;
NSLog(
@"CHAR_MIN: %c"
, CHAR_MIN)
;
NSLog(
@"CHAR_MAX: %c"
, CHAR_MAX)
;
NSLog(
@"SHRT_MIN: %hi"
, SHRT_MIN)
; // signed short int
NSLog(
@"SHRT_MAX: %hi"
, SHRT_MAX)
;
NSLog(
@"INT_MIN: %i"
, INT_MIN)
;
NSLog(
@"INT_MAX: %i"
, INT_MAX)
;
NSLog(
@"LONG_MIN: %li"
, LONG_MIN)
; // signed long int
NSLog(
@"LONG_MAX: %li"
, LONG_MAX)
;
NSLog(
@"ULONG_MAX: %lu"
, ULONG_MAX)
; // unsigned long int
NSLog(
@"LLONG_MIN: %lli"
, LLONG_MIN)
; // signed long long int
NSLog(
@"LLONG_MAX: %lli"
, LLONG_MAX)
;
NSLog(
@"ULLONG_MAX: %llu"
, ULLONG_MAX)
; // unsigned long long int
When run on an iPhone 3GS (iPod Touch and older iPhones should yield the same result) you get:
Primitive sizes:
The size of a char
is: 1
.
The
size of short
is: 2
.
The
size of int
is: 4
.
The
size of long
is: 4
.
The
size of long
long
is: 8
.
The
size of a unsigned char
is: 1
.
The
size of unsigned short
is: 2
.
The
size of unsigned int
is: 4
.
The
size of unsigned long
is: 4
.
The
size of unsigned long
long
is: 8
.
The
size of a float
is: 4
.
The
size of a double
is 8
.
Ranges
:
CHAR_MIN: -128
CHAR_MAX: 127
SHRT_MIN: -32768
SHRT_MAX: 32767
INT_MIN: -2147483648
INT_MAX: 2147483647
LONG_MIN: -2147483648
LONG_MAX: 2147483647
ULONG_MAX: 4294967295
LLONG_MIN: -9223372036854775808
LLONG_MAX: 9223372036854775807
ULLONG_MAX: 18446744073709551615
分享到:
相关推荐
python可视化图表案例-地图与等值域地图
lotus Domino开发域相关文档--多值域列表
WS364-卫生信息数据元值域代码 WS364-2011 (1-17全集) PDF+Excel
WS 364-2011卫生信息数据元值域代码 第13部分:卫生费用
专题-高中函数值域的求法(讲义与练习)+.pdf
专题-高中函数值域的求法讲义及练习+.doc
WS 364-2011卫生信息数据元值域代码 第3部分:人口学及社会经济学特征
WS 364-2011卫生信息数据元值域代码 第1部分:总则
2020届高考数学复习 第10课时 第二章 函数-函数的值域名师精品教案.doc
WS 364-2011卫生信息数据元值域代码 第9部分:实验室检查
提出一种连续属性值域划分的离散化新方法,该方法定义一个新的离散化函数,依据类与属性之间的相互依赖关系选择最优的离散区间列表;此外,采用变精度粗糙集理论合理地控制数据离散化产生的信息丢失,减少分类错误。...
WS 364-2011卫生信息数据元值域代码 第2部分:标识
Hamilton矩阵的$n$-次数值域的某些性质,阿拉坦仓,海国君,本文给出了Hamilton矩阵$n$-次数值域的一种对称性, 指出当Hamilton矩阵的两种分块形式符合某种对称时, 其$n$-次数值域关于虚轴相互对称.
WS364.1-17 2011卫生信息数据元值域代码.zip
上三角分块矩阵的$n$-次数值域的某些性质,阿拉坦仓,海国君,本文给出了上三角分块矩阵$n$-次数值域的某些性质, 指出对上三角分块矩阵$A$进行特定分块时, 其$n$-次数值域等于各对角分块$A_{ii}$对应�
为了满足密文域水印可逆嵌入的需要,利用一种直方图平移与同态加密相结合的技术,提出了一种新颖的差值域直方图平移密文图像可逆水印算法。该算法可以在没有原始图像信息的情况下直接对密文域图像嵌入水印,即实现...
WS 364-2011卫生信息数据元值域代码 第7部分:体格检查
WS 364-2011卫生信息数据元值域代码 第4部分:健康史
WS 364-2011卫生信息数据元值域代码 第11部分:医学评估