Hello, how do I point to a multidimensional array? I know to do this with a vector (unidmensional array), it looks like this:
int v[5];
int *ptr = v;
I understand this very well, but with an array I can not do that. When I use the same tactic for multidimensional array, this error occurs in GCC:
test.c: In function ‘main’:
test.c:5:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
int *ptr = m;
Can you give me a light of what to do? Thanks!