Hi,

After passing the address of the first element (&array[0][0]) of a multi-dimensional integer array to a function with a "const int*" parameter, parameter seems to be pointing to the wrong values, which are not the actual elements of the passed array.

First, why does this happen ?

Second, how can I fix this without changing the parameter type into a multi-dimensional int array ?

Thanks.