Home > Back-end >  C ask bosses
C ask bosses

Time:09-25

The problem of function declaration? ,,,,,,, didn't see what went wrong

CodePudding user response:

Function declaration
Int 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
  • Related