#include
int find_max(int a[5][4],int b[5],int *p1)
{
int i,j,k,t;
for(i=0;i<6;++i)
{for(j=1,k=a[i][0];j<5;++j)
k=k+a[i][j];
b[i]=k/5;}
for(i=0,j=1;j<6;++j)
{if(b[i]>b[j])
k=i;
else {t=b[j];b[j]=b[i];b[i]=t;}
}
p1=&b[i];
return(*p1);
}
int main()
{
int find_max(int a[5][4],int b[5],int *p1);
int a[5][4]={{1,2,3,4},{2,3,4,5},{3,4,5,6},{4,5,6,7},{5,6,7,8}},b[5],y;
int *p1;
y=find_max(a,b,p1); //实参和虚参要对应a[5][4]这是一个元素
printf("%d ",y);
return 0;
}