Suppose you have a two-dimensional array which has been initialized like
int M[5][5] = { {1,3,4,2,5},
{3,5,1,6,2},
{7,5,6,2,0},
{6,2,9,7,6},
{1,0,8,5,2} };
This M
will be passed as a parameter to a function. However the function only accepts int**
as parameter, not int [][5]
.
My question is, how to do this conversion?