x = 6;y = (x+3.8)/5.0;
y= 1
printf("%d\n",f * y); 打印就是乱码。。
printf("%d\n",(int)f * y); 2
printf("%f\n",f * y); 2.2
浮点数操作取整了,y是int类型,%d也是整形