以下程序的输出结果是______。 structHAR {int x,y;structHAR*p;}; main() { h[0].x=1;h [0].y=2; h[1].x=3;h[1].y=4; h[0].p=h[1].p=h; printf("%d%d\n",(h[0].p->y)); }A.12B.23C.14D.32

以下程序的输出结果是______。 structHAR {int x,y;structHAR*p;}; main() { h[0].x=1;h [0].y=2; h[1].x=3;h[1].y=4; h[0].p=&h[1].p=h; printf("%d%d\n",(h[0].p->y)); }

A.12

B.23

C.14

D.32


相关考题:

有以下程序:include main() {int a[] = {2,4,6,8,10} ,y =0,x, * p;p =a[1];for( 有以下程序: #include <stdio.h> main() { int a[] = {2,4,6,8,10} ,y =0,x, * p; p =a[1]; for(x=1;x<3;x++)y+ =p[x]; printf( "% d \n" , y); }程序运行后的输出结果是( )。A.10B.11C.14D.15

以下程序的输出结果是______。 struct HAR {int x,y;struct HAR *p;}h[2] main() { h[0].x=1;h[0].y=2 h[1].x=3;h[1].y=4 h[0].p=h[1];h[1].p=h printf("%d%d\n",()h[0].p)->x,(h[1].p->y); }A.12B.23C.14D.32

以下程序的输出结果是 ______。 struct HAR {int x,y;struct HAR*p;}h[2]; main() { h[0],x=1;h[0].y=2; h[1]x=3;h[1].y=4; h[0].p、h[1];h[1]..p=h; printf("%d%d\n",(h[0].p)->x,(h[1].p)->y; }A.12B.23C.14D.32

以下程序的输出结果是______。 struct HAR {int x,y;struct HAR*p;}h[2]; main() { h[0].x=1;h[0].y=2; h[1].x=3;h[1].y=4; h[0].p=h[1];h[1].p->y); printf("%d%d\n",(h[0].p)->x,(h[1].p)->y); }A.12B.23C.14D.32

以下程序的输出结果是()。includedefine F(x)2.84+xdefine w(y)printf("%d",(int)(y) 以下程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y) main() {int x=2; P(F(5)*x); }A.12B.13C.14D.16

以下程序的输出结果是______。 include main() { char*a="abcdefghi";int k fun(a);p 以下程序的输出结果是______。 #include <string.h> main() { char*a="abcdefghi";int k fun(a);puts(a); } fun(char*s) { int x,y; char c for(x=0,y=strlen(s)-1;x<y:x++,y--) {c=s[y];s[y]=s[x];s[x]=c;} }A.ihgfedcbaB.abcdefghiC.abcdedebaD.ihgfefghi

以下程序的输出结果是( ) struct HAR { int x,y;struct HAR *p;} h[2]; main() { h[0].x=1;h[0].y=2; h[1].x=3;h[1].y=4; h[0].p=h[1];h[1].p=h; printf("%d%d\n" h[0].p)->x,(h[1].p)->y); }A.12B.23C.14D.32

以下程序的输出结果是______。 struct HAR {int x,y;struct HAR *p;} h[2]; main() { h[0]x=1;h[0]y=2; h[1]x=3;h[1]y=4; h[0].P=h[1];h[1].p=h; printf("%d%d\n",(h[0].p)->x,(h[1].p)->y); }A.12B.23C.14D.32

有以下程序:include void f(int * x,int * y) int t;t= *x; *x= *y; *y=t;main ( ){in 有以下程序:#include <stdio.h>void f(int * x,int * y) int t; t= *x; *x= *y; *y=t;main ( ){ int a[8] = { 1,2,3,4,5,6,7,8} ,i, * p, * q; p=a;q =a[7]; while(p<q) { f(p,q) ;p ++ ;q --; } for(i =0;i<8;i ++ ) printf(" % d," ,a[i]); }程序运行后的输出结果是( )。A.8,2,3,4.,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3,4,5,6,7,8,D.8,7,6,5,4,3,2,1,