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.
int box(int rows, int cols, int [rows][cols])
needs to be
int box(int rows, int cols, int something[rows][cols])
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With