int Count(struct IntNode *f)


{ //f为指向一个单链表的表头指针


int c=0;


while(f) {


c++;


f=f->next;


}


return c;


}


假定struct IntNode的类型定义为:


struct IntNode {int data; IntNode* next;};
简答题 (5 分)
出自:国家开放大学C语言程序设计