注意:此页面搜索的是所有试题
int FindMax(struct IntNode *f) //f为一个单链表的表头指针
{
int x;
if(!f) {printf("单链表为空\n"),exit(1);}
x=f->data;
f=f->next;
while(f) {
if(f->data>x) x=f->data;
f=f->next;
}
return x;
}
假定struct IntNode的类型定义为:
struct IntNode { int data; struct IntNode* next;};
函数功能:(简答题)

参考答案