Am using Metrowerks CodeWarrior, and I am working with a two-dimensional dynamic array.
Sometimes the nested loop
for(i=0;i<r;i++)
{
for(j=0;j<s;j++)
{
do_something_to(array[i][j]);
}
}
doesn't quite behave as it should. After significant debugging, I have found that it doesn't always retrieve the array value it's supposed to. For example, when i=4, j=0, it retrieves array[0][0] instead of array[4][0].
Does anyone know how this might be fixed?