C
chy1013m1
I am slightly confused as to how to reference multi-dimensional array
with pointers.
I've tried the following code, and I was able to reference 33 as
pptr[0][2]
int multi[2][3] = {{11,27,33}, {12,13,14}};
int (*pptr)[3] = multi;
I know that int (*pptr)[3] reads : pptr is a pointer to an array of 3
ints, so does it mean it is a
int* ? or is it a int** ?
with pointers.
I've tried the following code, and I was able to reference 33 as
pptr[0][2]
int multi[2][3] = {{11,27,33}, {12,13,14}};
int (*pptr)[3] = multi;
I know that int (*pptr)[3] reads : pptr is a pointer to an array of 3
ints, so does it mean it is a
int* ? or is it a int** ?