以下程序的输出结果是
#include
void prt (int *x, int *y, int *z)
{printf("%d,%d,%d\n",++*x,++*y,*(z++));}
main()
{int a=10,b=40,c=20;
prt (&a,&b,&c);
prt (&a,&b,&c);}
A.11,42, 31
12,22,41
B.11,41,20
12,42,20
C.11,21,40
11,21,21
D.11,41,21
12,42,22
第1题:
以下程序的输出结果是 【10】 。
fun (int x,int y,int z)
{ z =x*x+y*y;}
main ()
{int a=31;
fun (6,3,a)
printf ("%d", a)
}
第2题:
下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(&y); }
A.3
B.4
C.2
D.5
第3题:
以下程序的输出结果是______。
fun(int x,inty,int z)
{ z=x*x+y*y;}
main()
{ int a=31;
fun(6,3,a)
printf("%d",a)
}
第4题:
有以下程序: #include<iostream.h> void fun(int a, int b, int c) { a=456,b=567,c=678;} void main( ) { int x=10,y=20,z=30; fun(x, y, z) ; cout < < x< < ',' < < y < < ',' < < z < < endl; } 输出结果是
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第5题:
以下程序的输出结果是 #include<stdio.h> void prt(int *x,int*y,int*z) { printf("%d,%d,%d\n",++*x,++*y,*(z++));} main() { int a=10,b=40,c=20; prt(&a,&b,&c); prt(&a,&b,&c);}
A.11,42,31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,21
D.11,41,21. 12,42,22
第6题:
以下C程序段的输出结果是(30)。 #include<stdio.h> void prt(int*x,Int*y,int*z){ printf("%d,%d,%d\n",++*x,++*y,*(z++)); } void main(){ int a=10,b=40,c=20; Prt(&a,&b,&c); Prt(&a,&b,&c); }
A.11,42,31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,41
D.11,41,20 12,42,22
第7题:
有以下程序: viod fun(int a,int b,int c) { a=456:b=567;c=678;} main { int x=10,y=20,z=30; fun(x,y,z): printf("%d,%d,%d\n",x,y,z); } 输出的结果是( )。
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第8题:
有以下程序void fun(int a,int b,int c){ a=456,b=567,c=678;}main(){ int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z);}输出结果是A.10,20,30 B.30,20,10C.456,567,678 D.678,567,456
第9题:
以下程序的输出结果是______。 fun(int x,int y,int z) {z=x*x+y*y;} main() { int a=31; fun(5,2,a); printf("%d",a); }
A.0
B.29
C.31
D.无定值
第10题:
有以下程序: #include <stdio.h> fun(int x,int y,int z) { z=x*y;} main() { int a=4,b=2,c=6; fun(a,b,c); printf("%d",c); } 程序运行后的输出结果是( )。
A.16
B.6
C.8
D.12
第11题:
有以下程序: #include <stdio.h> void fun(int a,int b,int c) { a=456,b=567,c=678;} main() { int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z); } 此程序的输出结果是( )。
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第12题:
有以下程序 #include<iostream.h> void fun(int a,int b,int c) {a=456,b=567,c=678;} void main() { int x=10,y=20,z=30; fun(x,y,2); cout << X < < ‘,’ < < y < < ‘,’ < < z < < endl; } 输出结果是
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第13题:
以下程序的输出结果是 【11】 。
int fun(int x,int y,int *p,int *q)
{ *p=x*y;
*q=x/y;}
main()
{int a,b,c,d;
a=4;b=3;
fun(a,b,&c,&d);
printf("%d,%d\n",c,d);}
第14题:
有以下程序:
int sub(int n) { return(n/10+n%10); }
main()
{ int x, y;
scanf("% d", &x);
y=sub(sub(sub(x)));
printf("% d\n", y);
}
若运行时输入:1234<回车>,程序的输出结果是【 】。
第15题:
以下程序的输出结果是______。 fun(int x, int Y, int z) { z=x*x+y*y;} main() { int a=31; fun(5, 2, a); printf("% d", a); }
A.0
B.29
C.31
D.无定值
第16题:
有以下程序:#include <stdio.h>prt(int * m,int n) int i; for(i =0;i<n;i ++ ) m[i] ++;main( )} int a[ ] = { 1,2,3,4,5} ,i; prt(a,5); for(i =0;i<5;i ++ ) printf( "% d," ,a[i] );}程序运行后的输出结果是( )。
A.1,2,3,4,5,
B.2,3,4,5,6,
C.3,4,5,6,7,
D.2,3,4,5,1
第17题:
以下程序的输出结果是______。 #include<stdio.h> void prt(int*x,int*y,int*z) { printf("%d,%d,%d\n",++*x,++*y,*(z++));} int a=10,b=40,c=20; main() { prt(&a,&b&c) prt(&a,&b,&c); }
A.11,42,31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,41
D.11,41,21 12,42,22
第18题:
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }
A.0
B.4
C.10
D.无定值
第19题:
以下程序的输出结果是( )。 #include<stdio.h> void prt(int *x,int *y,int *z) {printf("%d,%d,%d\n",++*x,++*y,*(z++));} main() {inta=10,b=40,c=20; prt(&a,&b,&C); prt(&a,&b,&C);}
A.11,42,31 12,22,41
B.11,41,20 1,42,20
C.11,21,40 11,21,21
D.11,41,21 12,42,22
第20题:
以下程序的输出结果是______。 #include<stdio.h> void prt(int *x,int *y,int *z) { printf("%d,%d,%d\n",++*x,++y,*(z++));} int a=10,b=40,c=20; main() { prt(&a,&b&c); prt(&a,&b,&c); }
A.11,42,31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,41
D.11,41,21 12,42,22
第21题:
请读程序: #include <stdio.h> func(int a, int b) { int c; c=a+b; return c; } main() { int x=6,y=7,z=8,r; r=func((x--,y++,x+y),z--); printf("%d\n",r); 上面程序的输出结果是( )。
A.11
B.20
C.21
D.31
第22题:
有程序: void fun(int a,int b,int c) {a=456;b=567;c=678;} main( ) {int x=10,y=20,z=30; fun(x,y,Z); printf("%d,%d,%d\n",z,y,x); } 输出结果是 ( )
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第23题:
以下程序的输出结果是______。 #include<stdio.h> void prt(int.*x,int*y,int*z) { printf("%d,%d,%d\n",++*x,++*y,*(z++));} int a=10,b=40,c=20; main() { prt(&a,&b&c) ; prt(&a,&b,&c) ; }
A.11,42,31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,41
D.11,41,21 12,42,22