• 2022-07-28
    下述函数中,定义正确的是 ____。
    A: floatf(floatx;floaty)
    {returnx*y;}
    B: floatf(floatx,y)
    {returnx*y;}
    C: floatf(floatx,floaty);
    {returnx*y;}
    D: floatf(floatx,floaty)
    {returnx*y;}
  • D

    内容

    • 0

      下面哪些定义是类型正确的? A: f :: (Integer, Integer) - Floatf (x,y) =x / y B: f :: (Integer, Integer) - Floatf (x,y) = (fromInteger x) / (fromInteger y) C: f :: (Integer, Integer) - Floatf (x,y) = 3*x + y D: f :: (Integer, Integer) - Integerf (x, y) = 3*x + y

    • 1

      已有定义:inta,b;floatx,y;,以下正确的赋值语句是()

    • 2

      有如下程序main(){floatx=2.0,y;if(x<0.0)y=0.0;...\n",y);}该程序的输出结果是().

    • 3

      已有定义inta,b;floatx,y;,以下正确的语句是() A: x%=2; B: y=(a%2)/10; C: x=y+6 D: a+b=x;

    • 4

      有如下程序段,对应正确的数据输入是()。floatx,y;scanf("%f%f",&x,&y);printf("a=%f,b=%f",x,y);