用指针求二维数组中的最大值最小值及其位置

问题遇到的现象和发生背景

用指针求二维数组中的最大值最小值及其位置

用代码块功能插入代码,请勿粘贴截图

// function: take array elements as input
void ReadArrData(int a[M][N], int m, int n)
{
填空1
}
// function: find the largest and smallest number in array
void FindArrData(int a[M][N], int m, int n, int *maxnum, int *minnum,int *largrowloc, int *largcolumnloc, int *smallrowloc, int *smallcolumnloc)
{
¢ß
}

我想要达到的结果

程序成功运行