在考生文件夹下,给定程序FILL.C的功能是:
把数组a(大小为M)中前M-1个元素中的最小值放入a的最后一个元素中
#include
#define M 11
void main()
{ int a[M],i;
for(i=0;i
scanf("%d",&a[i]);
a[M-1]=a[0];
|
for(i=1;i |
for(i=1; ___(1)___;i )
/************found************/
|
if(a[M-1]>a[i]) |
a[M-1]=a[i];
printf("Max is %dn",a[M-1]);
}
