append.
int
main()
{
int
array[MAX_SIZE], size, index;
scanf
(
"%d"
, &size);
get_array(array, size);
index = min_index(array, size);
printf
(
"minimum number is %d, whose position is %d."
, array[index], index);
return
0;
}
#include <stdio.h>
int MAX_SIZE=1001;
int get_array(int a[],int n)
{
int i;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
return n;
}
int min_index(int a[],int n)
{
int min=a[0],i,k;
for(i=1;i<n;i++)
{
if(min>a[i])
{
min=a[i];
k=i;
}
}
return k;
}