I keep getting a bus error, please help!
I am working on a program that is using a dynamically allocated array. I have determined that the bus error came from this piece of code.
for ( int i = 0; i < (rows-1); i++)
for ( int j = 0; j < (colmn-1); j++ )
arrGrid[i][j] = 0;
But I am not sure what I am doing wrong. Please help if you know what the problem is. It seems that the outside for loop is what is causing the problem, and I am not sure why.