类型 | 字节 | 最小值 | 最大值 |
int | 4 | -2147483648 | 2147483647 (2^31 - 1) |
unsigned int | 4 | 0 | 4294967295 (2^32 - 1) |
long | 4 | -2147483648 | 2147483647 (2^31 - 1) |
unsigned long | 4 | 0 | 4294967295 (2^32 - 1) |
long long | 8 | --9223372036854775808 | 9223372036854775807 (2^63 - 1) |
Unsigned long long | 8 | 0 | 18446744073709551615 (2^64 - 1) |
__int64 | 8 | --9223372036854775808 | 9223372036854775807 (2^63 - 1) |
unsigned __int64 | 8 | 0 | 18446744073709551615 (2^64 - 1) |
int、long和long long的范围
最新推荐文章于 2023-07-17 07:41:57 发布