简答题
调用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);}
简答题
调用fun函数求5行5列矩阵主对角线元素之和。#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);}
套餐购买该问题答案仅对会员开放,欢迎开通会员 ¥ 19.9
0.64/天
1个月(不限次)
¥ 19.9
1000次
(不限时)
¥ 29.9
0.32/天
3个月(不限次)
¥ 59.9
0.16/天
1年(不限次)
立即支付