题目内容
(请给出正确答案)
[主观题]
下面程序段的功能是利用从尾部插入的方法建立单链表的算法,请在下划线处填上正确的内容。 struct
node { __________________ struct node *next; }; void lklistcreate(_____________ *head) { struct node *tail; for (i=1;i<=n;i++) { p="__________________________________________________;" scanf(“%d”,&(p->data)); p->next=_________________; if(i==1) head=tail=p; else { tail->next=p; _____________________ } } }
提问人:网友leeshy
发布时间:2022-01-07