How can I pass a multidimensional array to a function in C/C++ ?
The dimensions of array are not known at compile time
See Question&Answers more detail:osHow can I pass a multidimensional array to a function in C/C++ ?
The dimensions of array are not known at compile time
See Question&Answers more detail:osA pointer to the start of the array along with the dimensions - then do the array arithmetic in the function is the most common solution.
Or use boost