windows mac数据类型区别
windows:
sizeof(char) 1 unsigned int
sizeof(char*) 4 unsigned int
sizeof(int) 4 unsigned int
sizeof(short) 2 unsigned int
sizeof(long) 4 unsigned int
sizeof(float) 4 unsigned int
sizeof(long long) 4 unsigned int
sizeof(long double) 8 unsigned int
sizeof(double) 8 unsigned int
sizeof(double long) CXX0004: 错误: 语法错误
sizeof(char)int1
sizeof(char*)int8
sizeof(int)int4
sizeof(short)int2
sizeof(long)int8
sizeof(float)int4
sizeof(long long)int8
sizeof(long double)int16
sizeof(double)int8
sizeof(double long)(null)(null)
sizeof(nsstring)(null)(null)
sizeof(string)(null)(null)