下面程序段运行的结果为( )
#include
int fun(float x,float y);
int fun(float x,float y)
{
return x > y ? x : y;
}
void main()
{
printf("%d,%d\n",fun(3,5),fun(4.8,4.6));
}
A、5,4
B、3,4.6
C、5,4.8
D、3,4
#include
int fun(float x,float y);
int fun(float x,float y)
{
return x > y ? x : y;
}
void main()
{
printf("%d,%d\n",fun(3,5),fun(4.8,4.6));
}
A、5,4
B、3,4.6
C、5,4.8
D、3,4