一些整数类型的表示范围

unsigned int    04294967295 

int             -21474836482147483647 unsigned long   04294967295

long            -21474836482147483647

long long:     -9223372036854775808~9223372036854775807 unsigned long long的最大值:  1844674407370955161 __int64: -9223372036854775808~9223372036854775807 unsigned __int64的最大值: 18446744073709551615

float的范围为 -2^128 ~ +2^128 也即-3.40E+38 ~ +3.40E+38

double的范围为 -2^1024 ~ +2^1024 也即-1.79E+308 ~ +1.79E+308

 

你可能感兴趣的:(类型)