单选题:带头结点的单链表的结点结构声明如上,头指针为head,要把p所指结点链接到head所指结点之后的语句是( )
struct node
{
int data; //数据域
struct node *next; //指针域
};
带头结点的单链表的结点结构声明如上,头指针为head,要把p所指结点链接到head所指结点之后的语句是( )
A.head->next=p;
B.
p->next=head->next;
head->next=p;
C.
head->next=p;
p->next=head->next;
D.p->next=head->next;
答案:B