下面程序以每行4个数的形式输出a数组,请分析程序填空。#defineN20main(){inta[N],i;for(i=0;i①);for(i=0;i{printf("%3d",a[i]);if(②)printf("\n");}}
调用fun函数求5行5列矩阵所有元素之和。编写fun函数。#include#defineM5intfun(inta[M][M]){/**********Program**********//**********End**********/}main(){inta[M][M]={{1,3,5,7,9},{2,4,6,8,10},{2,3,4,5,6},{4,5,6,7,8},{1,3,4,5,6}};intsum;sum=fun(a);printf("s=%d\n",sum);}