问题 填空题

写出算法的功能。int L(head){node * head;int n=0;node *p;p=head;while(p!=NULL){ p=p->next; n++; }return(n);}

答案

参考答案:求单链表head的长度

单项选择题
单项选择题