单选题 有以下程序:
#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 );
}
程序运行后的输出结果是______。
【正确答案】 B
【答案解析】[解析] 由题干中的函数可知,程序运行后的输出结果为2,4。