• 2021-04-14
    以下函数值的类型是fun(floatx){floaty;y=3*x-4;returny;}
  • int

    内容

    • 0

      以下函数值的返回值类型是( )。 fun(float x) float y; y=3*x-4; return y; A: int B: 不确定 C: void D: float

    • 1

      fun函数的返回值的类型是 。 ‏​fun ( float x )‏​{ float y;‏y=3*x-4;‏return y;‏​}‏ A: int B: 不确定 C: void D: float

    • 2

      下述函数中,定义正确的是 ____。 A: floatf(floatx;floaty)<br>{returnx*y;} B: floatf(floatx,y)<br>{returnx*y;} C: floatf(floatx,floaty);<br>{returnx*y;} D: floatf(floatx,floaty)<br>{returnx*y;}

    • 3

      读下列程序,写出运行结果#include&#91;stdio.h&#93;Int fun(int x){ inty; if(x==0||x==1)return(3); y=x*x-fun(x-2) returny;}main(){ int x,y; x=fun(3); y=fun(4); printf("%d, %d\n", x ,y);}

    • 4

      以下函数返回值的数据类型是。 int fun(float x) { float y; y=3*x-4; return y; } A: int B: float C: void D: 不确定