各位高手,会的,帮帮忙,要解释的
16)下列程序运行后的输出结果是【16】。struct NODE
{ int num; truct NODE *next;
};
main( )
{ struct NODE s[3]={{1, '\0'},{2, '\0'},{3, '\0'}},*p,*q,*r;
int sum=0;
s[0].next=s+1; s[1].next=s+2; s[2].next=s;
p=s; q=p→next; r=q→next;
sum+ =q→next→num; sum+ =r→next->next→num;
printf("%d\n",sum);
}
给出答案并要解释。