I get an error when trying to call a method:
int box(int rows, int cols, int [rows][cols])
from the main method using this call:
box(arrayDimensions, arrayDimensions, array);
But I'm not sure what the problem is.
Thanks.
should be
int box(int rows, int cols, int something[rows][cols])
Remember that each variable used in the function definition / header must have an identifier / name. Like everything else, the array you use must have an identifier / name, as this @AkshaiShah variable changed your code very well.
Source: https://habr.com/ru/post/928011/More articles:How to catch roman numbers inside a string? - regexCreating a 32-bit JavaFx Native Bundle on a 64-bit machine - nativeUnity: LogWriter cannot be built - c #Why does the sample code from the Yahoo Social SDK for PHP always return NULL for a session variable? - apiAn activation error occurred while trying to get an instance of type LogWriter, key "" - asp.net-mvcPhonepad PhoneGap / Android - androidOracle Cast using% TYPE attribute - oracleHow to get entity manager or transaction in jpa listener - javaEclipse: search folders and resources in Project Explorer - eclipseIs there a maximum data length for ajax jQuery query - jqueryAll Articles