以下程序的输出是什么?

来源:百度知道 编辑:UC知道 时间:2024/06/07 10:30:17
struct st
{ int x; int *y;} *p;
int dt〔4〕={ 10,20,30,40 };
struct st aa〔4〕={ 50,&dt〔0〕,60,&dt〔0〕,60,&dt〔0〕,60,&dt〔0〕};
main()
{ p=aa;
printf("%d\n",++(p->x));
}

输出结果是:
51

struct st
{
int x;
int *y;
} *p;

int dt[4]={ 10,20,30,40 };
struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]};
int main()
{
p=aa;
printf("%d\n",++(p->x));//50+1
system("pause");
return 0;
}