Legionaire
Technical User
ok, n00b qestion:
I want to use pointer arithmetic to manipulate members of a multidimensional array. But I can't figure out how to point to it!
int int_array[2][5];
+ ------- I want to point here.
|
v
[x][x][x][x][x] <--- int_array
[x][x][x][x][x]
simply creating an *intptr, then setting it = to int_array gives a "cannot convert" error.
creating a (intptr)[5], and setting it = to int_array[0] doesn't work either.
any ideas?
I want to use pointer arithmetic to manipulate members of a multidimensional array. But I can't figure out how to point to it!
int int_array[2][5];
+ ------- I want to point here.
|
v
[x][x][x][x][x] <--- int_array
[x][x][x][x][x]
simply creating an *intptr, then setting it = to int_array gives a "cannot convert" error.
creating a (intptr)[5], and setting it = to int_array[0] doesn't work either.
any ideas?