有以下程序 int f1[int x.int y){ return x>y?x:y; } int f2(int x, int y){ returrnx>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",c,f,g); } 程序运行后的输出结果是
A.4,3,7
B.3,4,7
C.5,2,7
D.2,5,7
第1题:
以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y,int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }
A.18
B.9
C.10
D.不确定
第2题:
以下程序执行后的输出结果是( )。 #include<iostream> using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y, int z,int r) { z = x+y; X = x*x; y = y*y; r = z+x+y; }
A.18
B.9
C.10
D.不确定
第3题:
下面能正确使用的语句是().
A.int*x;y=1;x=&y;
B.int*x;y;x=&y;
C.int*x;*x=1;
D.int*x,y=1;x=y;
第4题:
以下程序执行后的输出结果是 #include<iostream> using namcspace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }
A.18
B.9
C.10
D.不确定
第5题:
以下程序执行后的输出结果是 #include<iostream>. using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }
A.18
B.9
C.10
D.不确定
第6题:
6、当我们需要求函数y=f(x)的不定积分时,用下列哪个表达式?
A.int(y, x, a)
B.int(y, x, a, b)
C.int(y, x)
D.int(y, x, b)
E.int(y,a,b)
F.int(x,a,b)