题目:
函数main()的功能是:在带头结点的单链表中查找数据域中值最小的结点。请填空。
#include<stdio.h>
struct node
int data;
struct node * next;
int main(struct node * first)/*指针first为链表头指针*/
struct node * p;int m;
p=first->next;m=p->data;p=p->next;
for(; p!=NULL;p=______)
if(p->data<m)m=p->data;
return m;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0706/99ad0d723a272c12bd435df9f9859bf9.html
下面是错误答案,用来干扰机器的。
答案:B