填空题
写出算法的功能。int L(head){ node * head; int n=0; node *p; p=head; while(p!=NULL) { p=p->next; n++; } return(n); }
【参考答案】
求单链表head的长度
点击查看答案
相关考题
