70,020
社区成员




#include<stdio.h>
int main(void)
{
int a = 2147483647;
float b = 3.40E+38;
float c = 10.0E-37f;
printf("the value of a is %d,the overflow of int is %d,the other is %d\n",a,a+1,a+2);
printf("the maxiest value of float is %e,the overflow is %e\n",b,b*10.0f);
printf("the minius value of float is %e,the overflow is %e\n",c,c/100);
return 0;
}
,结果是
#include<stdio.h>
int main(void)
{
int a = 2147483647;
float b = 3.40E+38*100.0f;
float c = 10.0E-37f/100;
printf("the value of a is %d,the overflow of int is %d,the other is %d\n",a,a+1,a+2);
printf("the maxiest value of float is %e,the overflow is %e\n",b,b*10.0f);
printf("the minius value of float is %e,the overflow is %e\n",c,c/100);
return 0;
}