I can pass a single dimension array into a function just fine, but I now want to know how to pass a 2D array into a function. For some reason I can't figure this one out.
You need to write the length of every dimension except the first (which you can leave blank if you so choose).
So it would have to be something like
1 2 3 4 5 6 7 8
constint ROWS = 5;
constint COLUMNS = 6;
void doStuff(int array[][COLUMNS]);
// or
void doStuff2(int array[ROWS][COLUMNS]);
// but this one would not work:
//void doStuff3(int array[][]);