14.请编写函数fun,函数的功能是求出二维数组周边元素之和,做为函数值返回。二维数组中的值在主函数中赋予。

14.请编写函数fun,函数的功能是求出二维数组周边元素之和,做为函数值返回。二维数组中的值在主函数中赋予。 例如:若二维数组中的值为:,则函数值为61。web #include <stdio.h> #define M 4 #define N 5 int fun(int a[M][N]){
相关文章
相关标签/搜索