二级二级C2013年9月全国计算机等级《二级C语言程序设计》专家预测卷(3)
题目内容

有以下程序:      #includemain(  )      {  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("%dn",p->next->n); }程序运行后的输出结果是(  )。

2024-07-09

A.2,3

B.2,4

C.3,4

D.4, 6

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端