+ 1
How to pass two 2d array in method????
I tried to call both the arrays using (int[][]a, int[][]b) but it's showing can't convert int to int[][]... can u guys tell me what's wrong!!!
2 Réponses
+ 2
think of a multi dimensional array as a x,y coordinates. to apply a int into int[][], you have to get it's position of where the int is located. so for example:
https://code.sololearn.com/caGtm6p0WNKX/?ref=app
0
thanks bro I got it