How can I pass a multidimensional array to a function in C/C++ ?
The dimensions of array are not known at compile time
You could pass a pointer and sizes, or use a std::vector. But the "real" solution is with a template:
template
void foo(int (&pArray)[N][M]);
This function template accepts a N by M array of ints, by reference. Note this is a function template, not a function, so you do get a different instantiated function per array type.