That the same (essentially) as this:
Passing an 2d array by reference like that makes sense, because if you have a required 2nd detention, chances are you have a required first detention. That syntax provides a way to force that requirement.Code:void func(int arr2d[][10][20]);
Also, you can alternatively make it a template like this. Beware that this will not allow heap arrays to be passed as arguments:
Note: that I in brackets should be capital. For some reason the forum prevents that.Code:template <typename T, int I>
void func(T (&array)[I]);