全部题库 / C语言 / 试题详情
单选题 C语言
2018-02-01

在以下程序
 #include<stdio.h>
main(  )
{struct node{int n; struct node *next;}*p;
struct node x[3]={{6,x+1},{8,x+2},{10,NULL}};
p=x;
printf(“%d,”,p->n);
printf(“%d\n”,p->next->n);
}
程序运行后的输出结果是(  )

A.8,6    
B.6,8    
C.8,10    
D.10,6

参考答案

B

答案解析

暂无解析