Given the following
0 1 2 3
4 5 6 7
8 9 10 11
How do I use pointer notation to declare the above data as a two dimensional array x.
Does it work to simply write
int (*x)[4] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
Given the following
0 1 2 3
4 5 6 7
8 9 10 11
How do I use pointer notation to declare the above data as a two dimensional array x.
Does it work to simply write
int (*x)[4] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};