问题
填空题
下面函数将指针p2所指向的线性链表串接到p1所指向的链表的末端。假定p1所指向的链表非空。请填空。
#define NULL 0
struct link
float a;
struct link *next;
;
concatenate (p1,p2)
struct list *p1,*p2;
if(p1->next==NULL)
p1->next=p2;
else
concatenate(______,p2);
答案
参考答案:p1->next