If I have a matrix such as thus:
char matrix1[5][5]=
{{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}};
and I also have a pointer, thus:
char * pmatrix1 = &matrix1;
How would I go about referencing a single element in the matrix using ONLY
the pointer?
I tried doing this:
pmatrix[1][1]=1;
But that doesn't work. Can someone help me out? Much appreciation!
CalenWakefield