double型:-1.7*10^308~+1.7*10^308
char -128 ~ 127 (1 Byte)
short -32767 ~ 32768 (2 Bytes)
unsigned short 0 ~ 65536 (2 Bytes)
int -2147483648 ~ 2147483647 (4 Bytes)
unsigned int 0 ~ 4294967295 (4 Bytes)
long == int
long long -9223372036854775808 ~ 9223372036854775807 (8 Bytes)
本文概述了计算机科学中常见的数值类型及其取值范围,包括double、char、short、unsigned short、int、unsigned int、long及long long等。通过了解这些基本类型的范围,有助于开发者在编程时正确选择合适的数据类型。
1997

被折叠的 条评论
为什么被折叠?



