搜题
问题   更新时间2023/5/15 14:01:00

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 分)

统计出以指针表头为f的链表中的结点个数
王老师:19139051760(拨打)