+ 1

how to pass a multidimentional array to a function?

12th Jul 2015, 8:14 AM
Michele Bucca
Michele Bucca - avatar
2 Antworten
+ 1
it's the same thing .. you pass the name of the multidimensional array's name but when you build the function you must put 4 square brackets and specify the "columns" like : void printMulti( int multiArr[ ][6] ) { // this function will only accept multidimensional arrays but they must have specifically 6 as there "columns" .. }
15th Aug 2015, 9:53 PM
Mohammed Dabbah
Mohammed Dabbah - avatar
0
put two brackets after the array name buddy ;)
29th Dec 2015, 12:56 AM
Michael Johnson-Henry
Michael Johnson-Henry - avatar