本人菜鸟 求教大哥大姐!!!帮我解决一下谢谢
#include <stdio.h>float tran(float x)
{
return x*3.2808;
}
int main()
{
float x,y;
scanf("%f",&x);
y=tran(x);
printf("%f\n",y);
return 0;
}
//F:\c语言范例开发大全\003.c(4) : warning C4244: 'return' : conversion from 'double ' to 'float ', possible loss of data
//这是什么原因?