I wonder does C/C++ allow one to use "const int **" in function call?
Suppose I have a matrix, which can be accessed by pointer to pointer. When I want to use this matrix, and forbid modification of any value in this matrix, can I do "func(const int **mat)"? I have tried this, but when I do something like this "a = mat[0][0]", there is error message.
I wonder if it is allowed to use "const int **" or what is the correct way to do that?
Thanks!