[求助]一段程序没有弄明白
#include<stdio.h>struct s
{int x,*y;
};
int data[5]={10,20,30,40,50};
struct s array[5]={100,&data[0],200,&data[1],300,&data[2],400,&data[3],500,&data[4]};
main()
{int i=0;
struct s s_var;
s_var=array[0];
printf("%d,",s_var.x);
printf("%d,",*s_var.y);
printf("%d,",array[i].x);
printf("%d,",*array[i].y);
printf("%d,",++array[i].x);
printf("%d,",++*array[i].y);
printf("%d,",array[++i].x);
printf("%d,",*++array[i].y);
printf("%d,",(*array[i].y)++);/*从这里不太清楚结果是怎么运行的*/
printf("%d,",*(array[i].y++));
printf("%d,",*array[i].y++);
printf("%d,",*array[i].y);
getch();
}
[此贴子已经被作者于2006-4-9 20:57:30编辑过]