Hey. I'm trying to answer a test practice question and I am not able to find a fix to a bug for hours now. I enter 16 values into the program but the first row and starting from the second and down to the very last of the row, the numbers are changed into the last row first three numbers. Try out the code and it will give you a better understanding of what I am trying to say. I want the output to be the same as the input, but it is not.
You cannot access the fourth element of a 3-element array. Your array is too small on both axes, and you are running off the edge. Change line 7 to int numbers[4][4];
Thank you! I changed to int numbers[4][4]; and ++count; I thought arrays counted from 0 which they do but [] is suppose to contain # of elements which I did not know. And I used count += 1 out of habit.