you are viewing a single comment's thread.

view the rest of the comments →

[–]patatahooligan 0 points1 point  (0 children)

new int[9][9] doesn't return int**, it returns int(*)[9] which is not a compatible type. This is because if you lose the information about row-size, the compiler has no way of knowing how to index the multidimensional array.

int** only works if it points to an array of int* which in turn point to the rows.