structH
{intx;int*y;)xy[2];
voidf(structH*p)
{(p+1)->x=10;
(*p).x=20;
(*p).y=&((*(p+1)).x);
(*(p+1)).y=&(p->x);
}
main()
{structH*q=xy;
f(q);
printf("%d,%d\n",*(q->y),*(xy[0].y));
}
10,10
y),*(xy[0].y));}">
structH
{intx;int*y;)xy[2];
voidf(structH*p)
{(p+1)->x=10;
(*p).x=20;
(*p).y=&((*(p+1)).x);
(*(p+1)).y=&(p->x);
}
main()
{structH*q=xy;
f(q);
printf("%d,%d\n",*(q->y),*(xy[0].y));
}
10,10