Parameter name omitted error?
51,783
Solution 1
int box(int rows, int cols, int [rows][cols])
needs to be
int box(int rows, int cols, int something[rows][cols])
Solution 2
Remember, every variable that you use in the function definition/header needs to have an identifier/name. Like anything else, the array you use needs to have an identifier/name, since it is a variable @AkshaiShah modified your code pretty nicely.
Author by
AkshaiShah
Updated on August 17, 2020Comments
-
AkshaiShah almost 4 years
I am getting an error when trying to call the method:
int box(int rows, int cols, int [rows][cols])
from the main method using this call:
box(arrayDimensions, arrayDimensions, array);
But i am not sure what the problem is.
Thanks.