操作系统: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
原文:https://www.cnblogs.com/yulongzhou/p/10990230.html