整数类型c++

数据类型

定义标识符

占字节数

数值范围

数值范围

短整型

short [int]

2(16位)

-32768~32767

-215~215-1

整型

[long] int

4(32位)

-2147483648~2147483647

-231~231-1

长整型

long [int]

4(32位)

-2147483648~2147483647

-231~231-1

超长整型

long long [int]

8(64位)

-9223372036854775808~9223372036854775807

-263~263-1

无符号整型

 unsigned [int]

2(16位)

0~65535

0~216-1

无符号短整型

unsigned short [int]

2(16位)

0~65535

0~216-1

无符号长整型

unsigned long [int]

4(32位)

0~4294967295

0~232-1

无符号超长整型

Unsigned long long

8(64位)

0~18446744073709551615

0~264-1

posted @ 2018-01-07 18:11  Mr^Simon  阅读(275)  评论(0编辑  收藏  举报