1、已知h是指向单向加头链表的头指针,p指向一个新结点,将p所指结点插在表头的操作是_____。

A.p->next=h,h->next=p; B.p->next=h->next,h->next=p; C.p->next=h,h=p; D.h->next=p,p->next=h->next;

时间:2023-02-26 13:07:53

相似题目