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
I have tried the following:
// B is supposed to point to the short in m1[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:
This however prints out an incorrect value. Any suggestions?