求助- -我这儿有个代码,输出结果和预期不对。求指点
#include<stdio.h> #include<stdlib.h>
main()
{
float first,second;
first=123.33;
second=99.09;
float sum(float a,float b);
printf("%f\n",sum(first,second));
system("pause");
}
float sum (float a,float b)
{
return a+b;
}
222.419998
请按任意键继续. . .
这里得到的结果明显不对啊,求指点,求 why?