以下程序的输出结果是______。 #define M(x,y,z) x*y+z main() { int a=1,b=2,c=3 printf("%d%d\n",M(a+b,b+c,c+a)); }
A.19
B.17
C.15
D.12
第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题:
以下程序的输出结果是( )。 #define M(x,y,z)x*y+z main( ) { int a=l,b=2,c=3; printf("%d\n",m(a+b.b+c,c+a)); }
A.19
B.1 7
C.15
D.12
第3题:
以下程序的输出结果是( )。
#define M(x,y,z)x*y+z
main( )
{ int a=l,b=2,c=3;
printf("%d\n",m(a+b.b+c,c+a));
}
A.19
B.1 7
C.15
D.12
第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题:
以下程序的输出结果是______。 #define M(x,y,z) x*y+z main() { int a=1,b=2,c=3; printf("%d\n",M(a+b,b+c,c+a)); }
A.19
B.17
C.15
D.12