#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
int i,j,row=0,colum=0,a[3][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}};
int max=a[0][0];
for ( i = 0; i < 3; i++)//行(row)
{
for ( j = 0; j < 4; j++)//列(colum)
{
if (a[i][j]>max)
{
max=a[i][j];
row=i;
colum=j;
}
}
}
printf("max=%d\n",max);
printf("max=a[%d][%d]\n",row,colum);
return 0;
}