Is 2d array a double pointer? [duplicate]
Is 2d array a double pointer? No. This line of your program is incorrect: int **ptr = (int**)matrix; This answer deals with the same topic If you want concrete image how multidimensional arrays are implemented: The rules for multidimensional arrays are not different from those for ordinary arrays, just substitute the “inner” array type as … Read more