• 2022-07-24
    以下程序运行后,输出结果是 #define PT 5.5 #define S(x)PT* x * x main() {int a=1,b=2; printf("%4.lf\n",S(a+b); }
    A: 49.5
    B: 9.5
    C: 22.0
    D: 45.0
  • B

    内容

    • 0

      以下程序的输出结果是(  )。#define f(x) x*x main() {int a=6,b=2,c; c=f(a)/f(b); printf(“%d”,c); }

    • 1

      【单选题】有以下程序 #include #define f(x) x*x*x main() { int a=3,s,t; s=f(a+1);t=f((a+1)); printf(“%d,%d ’,s,t); } 程序运行后的输出结果是 A. 10,64 B. 10,10 C. 64,10 D. 64,64

    • 2

      以上程序的输出结果是______。 #define MIN(x,y) (x)<(y)(x):(y) main() { int a=5,b=2,c=3,d=3,t: t=MIN(a+b,c+d)*10;printf("%d\n" t);}

    • 3

      以下程序的输出结果是________。 #include "stdio.h" #define f(x) x*x void main() { int a=6,b=2,c; c=f(a)/f(b); printf("%d",c); }

    • 4

      下列程序的运行结果为________。 #include "stdio.h" #define MA(x) x*(x-1) void main() { int a=1,b=2; printf("%d",MA(1+a+b)); }