这个该怎么改..
程序代码: #include <conio.h>
#include <stdio.h>
int max;
int fun( int arr[ ],int n )
{ int pos,i;
max = arr[0];
pos = 0;
for ( i=1; i<n; i++)
if (max < arr[i])
{ max = arr[i];
pos=i; }
return(pos);
}
void main()
{
int a[10]={1,4,2,7,3,12,5,34,5,9}, n;
fun(a,n);
printf("The max is: %d ,pos is: %d\n", max , n);
} 









