以下程序的输出结果是 struct HAR {int x,y; struct HAR *P;} h[2]; main()
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/10/01 10:20:30
以下程序的输出结果是 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[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
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
以下程序的输出结果是 struct HAR {int x,y; struct HAR *P;} h[2]; main()
6:以下程序的运行结果是( ).#include “stdio.h” main() {struct data {int
#include main() { struct node{int n;struct node *nest;} *p;
struct st{int x;int*y;}*p;inta[]={1,2},b[]={3,4};struct st c
以下程序的输出结果是【8】 #include main() { int i
麻烦解释下以下程序的输出结果是_________.main( ) { int x=11,y=11; printf("%d
#include struct ord { int x,y;} dt[2]={1,2,3,4}; main() {str
以下程序的输出结果是 #include void prt (int *x,int*y,int*z){ printf("%
以下程序的输出结果是_______________.#include main() {int k=4,m=1,p; p=
4.以下程序的输出结果是 main() { int x=10,y=10,i; for(i=0;x>8;y=++i) pr
struct { int x; char *y; }tab[2]={{1,"ab"},{2,"cd"}},*p=tab;
Struct Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}