下面函数的功能是将指针t2所指向的线性链表 链接到t1所指向的链表的末端。假定t1所指向

计算机 假定,线性,指针 已帮助 人

下面函数的功能是将指针t2所指向的线性链表,链接到t1所指向的链表的末端。假定t1所指向的链表非空

struct node{ float x;struct node *next;};

connect(struct node *t1, struct node *t2)

{ if(t1->next==NULL)t1->next=t2;

else connect(______ ,t2); }

要实现此功能则应该添入的选项是

A.t1.next

B.++t1.next

C.t1->next

D.++t1->next

请帮忙给出正确答案和分析,谢谢!

热搜:ftell函数的用法(用于获取指针位置)