40.下列函数的功能是统计不带头结点链表的结点数。 #include
struct node *next;}; count(struct node *head) { int n;
while(head!=NULL) { n++;
head=head->next; }
return n; }
40.下列函数的功能是统计不带头结点链表的结点数。 #include
struct node *next;}; count(struct node *head) { int n;
while(head!=NULL) { n++;
head=head->next; }
return n; }
下一篇:CSC公派留学出国研修计划中文版