您的位置:首页 > 其它

各种基本数据类型的范围和精度如何?

2008-04-08 17:22 281 查看
Type Name Bytes Other Names Range of Values

int * signed (int) System dependent

char 1 signed char -128 to 127

long 4 (signed) long int -2,147,483,648 to 2,147,483,647

float 4 none 3.4E +/- 38 (7 digits)

double 8 none 1.7E +/- 308 (15 digits)

long double 10 none 1.2E +/- 4932 (19 digits)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: