> else if (j=0)
Well this will mess up the logic.
Try ==
Here's a first test.
Create a completed sudoku grid, remove just one number, and then see if your program can 'solve' it.
> else if (j=0)
Well this will mess up the logic.
Try ==
Here's a first test.
Create a completed sudoku grid, remove just one number, and then see if your program can 'solve' it.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.