下列程序中,主函数main调用函数 LineMax,求维数组中每一行元素的最大值并输出。
#include <stdio.h>
#define N3
#define M4
void LineMax( int x[N] [M])
{
int i,j, max;
for(i=0;i<N;i++)
{
max=x[i][0];
for(j=1;j<M;j++)if(max<x[i][j])_______;
printf("The max value in line %d is %d\n",i_______);
}
}
void main()
{
int a[N][M]={1,5,7,4,2,6,4,3,8,2,3,1};
_______;
}