CodePudding user response:
Function declarationInt ave (int (* arr) [2], int n);
Therefore, passing parameters should be ave (x, 10);
Parameters o, m are uncertain value, at least m need to determine value at compile time,
CodePudding user response:
Or in front of the main function added# define o 10
# defube m 2
Two-dimensional array as a parameter, the second must be a constant value in [], [] don't fill in the first