How I can pass a 2-dimensional array to a function.

The size of the array(m-by-n) is not the same each time I run the program...