+ 1
how to pass a multidimentional array to a function?
2 Respuestas
+ 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" ..
}
0
put two brackets after the array name buddy ;)