32位平台C/C++基本数据类型大小

sizeof(char) = 1
sizeof(unsigned char) = 1
sizeof(char*) = 4
sizeof(bool) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 4
sizeof(float) = 4
sizeof(wchar_t) = 4
sizeof(double) = 8
sizeof(long long) = 8
sizeof(long double) = 16
sizeof(unsigned short) = 2
sizeof(unsigned int) = 4
sizeof(unsigned long) = 4
sizeof(unsigned long long) = 8

你可能感兴趣的:(平台,float,C/C++)