下列程序的输出结果是( )。 #include<stdio.h> main { struct st { int y,x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un)) }
A.6,2
B.6,4
C.8,4
D.8,6
第1题:
以下程序的输出结果是_______。 #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
第2题:
以下程序的输出结果是( )。 #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
第3题:
以下程序的输出结果是______。 #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
第4题:
以下程序的输出结果是______。 #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
第5题:
以下程序的输出结果是( )。 #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
第6题:
下列程序的输出结果是( )。#include<stdio.h>main(){ struct st { int y, x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un));}
A.6,2
B.6,4
C.8,4
D.8,6