Say I have a matrix (that is of dimension DIM) of shorts called m1 and I want to split it into 4 (2 by 2)'s:
I need a pointer that will point to the short in
m1[0][dim/2]
I have tried the following:
short **B=&(m1[0][dim/2]);
// B is supposed to point to the short in m1[0][dim/2].
// m1 was passed into the function through its address as a
// short ***
I tried to check if B is pointing in the correct spot by doing this:
printf("%d ",B[0][0]);
This however prints out an incorrect value. Any suggestions?