Search code examples
cbuffer-overrun

programming of 3 x 7


I have been trying to program the 3x 7 trick. The full code is available here: https://codereview.stackexchange.com/questions/9419/programming-of-3-x-7-trick.

I am stuck at step 5.

enter image description here

I have this error when i type in the value for the row.

enter image description here

Not sure what the error is. Need some guidance.

step 6: enter image description here


Solution

  • That error comes from the back_to_array function, where you have a typo in the condition of the inner loop. It should be j < numRows instead of i < numRows.