#include<stdio.h>
int f(void)
{
return 10.5;
}
int main(void)
{
int i = 99;
double x = 6.6;
x = f(); //函数返回值以函数返回值类型int为准,所以只返回10
printf("%lf\n", x);
return 0;
}
#include<stdio.h>
int f(void)
{
return 10.5;
}
int main(void)
{
int i = 99;
double x = 6.6;
x = f(); //函数返回值以函数返回值类型int为准,所以只返回10
printf("%lf\n", x);
return 0;
}