通过试验来观察C语言数据溢出现象
#include<stdio.h>
int main()
{
printf("整数溢出举例:");
int a=99999999;
printf("%d,%d,%d\n",a,``10*a,100*a);
printf("浮点数数据上溢:");
float b=1.2e37;
printf("%f,%f,%f\n",b,10*b,100*b);
printf("浮点数下溢举例:");
float x=2.0e-6;
printf("%f,%f\n",x,x/10);
}