请补充函数fun(),该函数的功能是:按行统计N×N维矩阵元素中的最大值(均为整数),并把这些值按从小到大的顺序保存在数组b中。矩阵的维数在主函数中输入,并赋予随机数。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdio.h> #include<conio.h> #include<stdlib.h> #define N 20 void fun( 【1】 ) int i j; int t; for(i=0;i<n;i++) for(j=0;j<n;j++) if( 【2】 ) b[i]=a[i][j]; for(i=0;i<n;i++)
for(j=0;i<n;j++) if( 【3】 )
t=b[i]; b[i]=b[j]; b[j]=t;
main() int a[N][N]; int b[N]; int n; int i,j; clrscr(); printf("*****Input the dimension of array N*****\n"); scanf("%d",&n); printf("*****The array *****\n"); for(i=0;i<n;i++) for(j=0;i<n;j++)