void fun(int a[],int n,int *max,int *d){ int i; *max=a[0]; *d=0; for(i=1;i if(*max { *max=a[i]; *d=i; }}