以下程序的输出结果是 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); }
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/17 23:26:48
![以下程序的输出结果是 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(](/uploads/image/z/2733485-5-5.jpg?t=%E4%BB%A5%E4%B8%8B%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BE%93%E5%87%BA%E7%BB%93%E6%9E%9C%E6%98%AF+struct+HAR+%7Bint+x%2Cy%3B+struct+HAR+%2AP%3B%7D+h%5B2%5D%3B+main%28%29+%7Bh%5B0%5D.x%3D1%3Bh%5B0%5D.y%3D2%3B+h%5B1%5D.x%3D3%3Bh%5B1%5D.y%3D4%3B+h%5B0%5D.p%3D%26h%5B1%5D%3Bh%5B1%5D.p%3Dh%3B+printf%28%22%25d%25d%5Cn%22%2C%28h%5B0%5D.p%29-%3Ex%2C%28h%5B1%5D.p%29-%3Ey%29%3B+%7D)
x){{Wt?|Vˋ}z{ysXP\RT\PWPSi,`]mkPmWakh
fTYJ[PV
$.ͰV((ڒQkWbBؕ
6IEtv>JAfG1sX
9
O6 dH!
hu6 TAb^I=0yڻ-l@ p6
以下程序的输出结果是 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); }
以下程序的输出结果是 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); }
以下程序的输出结果是 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); }
h[0].p=&h[1];//h[0].p里面装的是h[1]的地址
h[1].p=h;//h[1.p里面装的是h[0]的地址
所以printf("%d%d\n",(h[0].p)->x,(h[1].p)->y); }
输出的是h1.x和h[0].y即输出结果是32
下列程序的运行结果为下列程序的输出结果是_______.# include #define LEN sizeof(struct line)struct line{ int num ;struct line *next;};void main( ){ int k ;struct line *p ,*head ;head=NULL;for(k=10; k>0; k--){p=(struct line *) malloc
以下程序的输出结果是 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
,(h[0].p)->x,(h[1].p)->y); }
以下程序运行后的输出结果是: i=0:n=0 Do while i
6:以下程序的运行结果是( ).#include “stdio.h” main() {struct data {int year,month,day; }today;1.6 2.8 3.10 4.12
以下程序的输出结果是【8】 #include main() { int i以下程序的输出结果是【8】 #include main() { int i,j,sum; for(i=3;i>=1;i--) { sum=0; for(j=1;j
以下程序段的输出结果是int x=3;以下程序段的输出结果是int x=3;do{printf(”%3d”,x-=2);}while(!(--x));请写明原因,
若有定义:int k;,以下程序段的输出结果是【##2##4】.for(k=2;k
以下程序输出的结果是 main() {int x; x=-3+4%6/5; printf(%d,x); }
以下程序的输出结果是() int x=10,y=10;printf(%d %d
,x--,--y);
以下程序运行后的输出结果是() main() {char m; m='B'+32; printf(%c/n,m);}
以下程序运行后的输出结果是() main() {char m; m='B'+32; printf(%c/n,m);}
以下程序的运行结果是输出如下图形** * ** * * * ** * * * * * ** * * * * * * * *#includevoid a(int i){int j,k;for(j=0;j
1.有以下程序 main() { int y=10; while(y--); printf(y=%d
,y); } 程序执行后的输出结果是(b) A)
运行如图所示的程序框图,输出的结果是
如图所示的程序框图,其最后输出的结果是
如图所示的程序框图,输出b的结果是
算法程序框图如图所示,最后输出的结果是
若有以下程序段 Int r=8 printf(%d
,x>>1); 输出结果是?