| 类型 |
大小(字节) |
值 |
| bool |
1 |
true 或者false |
| unsigned short int |
2 |
0~65535 |
| short int |
2 |
-32768~32767 |
| unsigned long int |
4 |
0~4294967395 |
| long int |
4 |
-2147483648~2147483647 |
| int |
4 |
-2147483648~2147483647 |
| unsigned int |
4 |
0~4294967395 |
| char |
1 |
256 个字符 |
| wchar_t |
2 |
256 个字 |
| float |
4 |
10-37~1038 |
| double |
8 |
10-307~10308 |
| long double |
16 |
10-4931~104932 |