分析下面程序的运行结果:
#include <stdin.h>
struct m{
int x;
int *y;
}*p;
int a[4]={12,33,-40,100};
struct m b[4]={10,&a[2],9,&a[3],8,&a[0],7,&a[1]};
main(){
p=b;
printf("%d\n",++p->x);
printf("%d\n",(++p)->x);
printf("%d\n",++(*p->y));
}
x); print">
分析下面程序的运行结果:
#include <stdin.h>
struct m{
int x;
int *y;
}*p;
int a[4]={12,33,-40,100};
struct m b[4]={10,&a[2],9,&a[3],8,&a[0],7,&a[1]};
main(){
p=b;
printf("%d\n",++p->x);
printf("%d\n",(++p)->x);
printf("%d\n",++(*p->y));
}
11
9
101