全部题库 / C语言 / 试题详情
单选题 C语言
2013-08-15

有以下程序:   
#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

答案解析

略。

你可能感兴趣的试题