数据类型 | 占用空间 | 取值范围 |
---|---|---|
short | 2 字节 | -32768 到 32767 |
int | 4 字节 | -2147483647 到 2147483647 |
long | 4 字节 | -2147483647 到 2147483647 |
unsigned short | 2 字节 | 0 到 65535 |
unsigned int | 2 字节 | 0 到 4294967295 |
unsigned long | 2 字节 | 0 到 4294967295 |
12、有符号无符号整形取值范围
猜你喜欢
转载自www.cnblogs.com/petewell/p/11422037.html
今日推荐
周排行