Android面试题——求出二维数组周边元素之和

函数fun功能是:求出二维数组周边元素之和,做为函数值返回,二维数组中的值在主函数中赋予。web #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define M 4 #define N 5 int fun(int a[M][N]) { int i, s = 0; for (i = 0;i < N;i++)
相关文章
相关标签/搜索