各数据类型在64位32位系统占字节数
操作系统:Windows10 64位专业版
实际打印
---64bit complier (minGW) ------
int: 4
long: 4 (和编译器设置有关)
double: 8
long long: 8
char: 1
char*: 8
int*: 8
---32bit complier(minGW) ------
int: 4
long: 4
double: 8
long long: 8
char: 1
char*: 4
int*: 4
--64bit complier(g++)------
int: 4
long: 8 (和minGW编译器64位不一样)
double: 8
long long: 8
char: 1
char*: 8
int*: 8