char |
-128 到 127 或者 0 到 255 |
|
1 个字节 |
unsigned char |
0 到 255 |
|
1 个字节 |
signed char |
-128 到 127 |
|
1 个字节 |
int |
-2147483648 到 2147483647 |
|
4 个字节 |
unsigned int |
0 到 4294967295 |
|
4 个字节 |
signed int |
-2147483648 到 2147483647 |
|
4 个字节 |
short int |
-32768 到 32767 |
|
2 个字节 |
unsigned short int |
0 到 65,535 |
|
2 个字节 |
signed short int |
-32768 到 32767 |
|
2 个字节 |
long int |
-9,223,372,036,854,775,808 到 9,223,372,036,854,775,807 |
|
8 个字节 |
signed long int |
-9,223,372,036,854,775,808 到 9,223,372,036,854,775,807 |
|
8 个字节 |
unsigned long int |
0 to 18,446,744,073,709,551,615 |
|
8 个字节 |
float |
+/- 3.4e +/- 38 (~7 个数字) |
|
4 个字节 |
double |
+/- 1.7e +/- 308 (~15 个数字) |
|
8 个字节 |
long double |
+/- 1.7e +/- 308 (~15 个数字) |
|
16 个字节 |
wchar_t |
2 或 4 个字节 |
|
1 个宽字符 |
|
|
|
|