下列程序的输出结果是()intf1(intx,inty){returnx>y?x∶y;}intf2(intx,inty){returnx>y?y∶x;}main(){inta=4,b=3,c=5,d=2,e,f,g;e=f2(f1(a,b),f1(c,d));f=f1(f2(a,b),f2(c,d));g=a+b+c+d-e-f;printf("%d,%d,%d\n",e,f,g);}
举一反三
- 下列程序的输出结果是( ) int f1(int x,int y){returnx>y?x ∶ y;} int f2(int x,int y){returnx>y?y ∶ x;} main( ) { int a=4,b=3,c=5,d=2,e,f,g; e=f2(f1(a,b),f1(c,d)); f=f1(f2(a,b),f2(c,d)); g=a+b+c+d-e-f; printf("%d,%d,%d\n",e,f,g); }
- 有以下程序 int f1(int x,int y) {return x>y?x:y;} int f2(int x,int y) {return x>y?y:x;} main() { int a=4,b=3,c=5,d=2,e,f,g; e=f2(f1(a,b),f1(c,d)); f=f1(f2(a,b),f2(c,d)); g=a+b+c+d-e-f; printf("%d,%d%d\n",e,f,g); } 程序运行后的输出结果是()
- 有以下程序#include<stdio.h>intf(intx);main(){intn=1,m;m=f(f(f(n)));printf(”%d\n”,m);}intf(intx){returnx*2;}程序运行后的输出结果是
- 以下程序的运行结果是 intf, f1, f2, i; f1 = 0; f2 = 1; printf("%d%d", f1, f2); for(i = 3; i <= 5; i++) { f = f1 + f2; printf("%d", f); f1 = f2; f2 = f; }
- 设f1(x)和f2(x)为二阶常系数线性齐次微分方程y″+py′+q=0的两个特解,若由f1(x)和f2(x)能构成该方程的通解,下列哪个方程是其充分条件?() A: f1(x)f′2(x)-f2(x)f′1(x)=0 B: f1(x)f′2(x)-f2(x)f′1(x)≠0 C: f1(x)f′2(x)+f2(x)f′1(x)=0 D: f1(x)f′2(x)+f2(x)f′1(x)≠0