有以下结构体说明和变量的定义,且如图14-4所示的指针p指向变量a,指针q指向变量b。则不能把结点b连接到结点a之后的语句是______。 struct node { char data; struct node * next; }a,b,*p=&a,*

admin2009-05-15  23

问题 有以下结构体说明和变量的定义,且如图14-4所示的指针p指向变量a,指针q指向变量b。则不能把结点b连接到结点a之后的语句是______。

struct node { char data; struct node * next; }a,b,*p=&a,*q=&b:

选项 A、a.next=q;
B、p.next=&b;
C、p->next=&b;
D、(*p).next=q;

答案B

解析
转载请注明原文地址:https://kaotiyun.com/show/HIWp777K
0

最新回复(0)