![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
请教:2014年全国计算机等级《二级C语言程序设计》专家预测卷(3)第1大题第26小题如何解答?
【题目描述】
有以下程序:
#include <stdio.h>
main()
{ struct node{int n; struct node*next;} *P;
struct node x[3]={{2,x+1),{4,x+2},{6,NULL}};
P= X;
printf("%d,",p->n);
printf("%d\n",p->next->n);
}
程序运行后的输出结果是()。 A.2,3
B.2,4
C.3,4
D.4, 6
【我提交的答案】: B |
【参考答案与解析】: 正确答案:B |
略。
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)