下列程序中,主函数main调用函数LineMax,求二维数组中每一行元素的最大值并输出。#include #define N 3#define M 4void LineMax(int x[N][M]){int i,j,max;for(i=0; i{ max= x[i][0];for(j=1; jif(max printf("The max value in line %d is%d\n", I, ____________); /*第二空*/}}void main(){int a[N][M]={1,5,7,
下列程序中,主函数main调用函数LineMax,求二维数组中每一行元素的最大值并输出。#include #define N 3#define M 4void LineMax(int x[N][M]){int i,j,max;for(i=0; i{ max= x[i][0];for(j=1; jif(max 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};____________); /*第三空*/}