单选题
👁️ 浏览量:

试题题干

设函数定义如下:
float f1 (float a, float b)
{
return (a+b);
}
若有float x=1.1, y=2.2;,则以下语句中正确的函数调用是 ()

A

printf (″%f″, f1(x));

B

printf (″%f″,f1(&x, y));

C

printf (″%f″,f1(*x,*y));

D

printf (″%f″,f1(x, y));

参考答案

正确答案:

试题解析

printf (″%f″,f1(x, y));是直接调用了定义的函数,f1()。