https://stackoverflow.com/questions/11869056/how-to-cast-simple-pointer-to-a-multidimensional-array-of-fixed-size int a[2][3]; int (*A)[3] = (int (*)[3]) a; How to cast simple pointer to a multidimensional-array of fixed size?