具体异同如下表所示:
| 类型 | 32位系统 | 64位系统 |
| char | 1 | 1 |
| unsigned char | 1 | 1 |
| signed char | 1 | 1 |
| int | 4 | 4 |
| short | 2 | 2 |
| long | 4 | 8 |
| long int | 4 | 8 |
| signed int | 4 | 4 |
| unsigned int | 4 | 4 |
| unsigned long int | 4 | 8 |
| long long int | 8 | 8 |
| unsigned long long | 8 | 8 |
| float | 4 | 4 |
| double | 8 | 8 |
| long double | 8 | 16 |
| 指针类型 | 4 | 8 |
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/xiaokfc/article/details/47011645