[Solved] Code is not giving expected result in sudoku
This line: if (mat1[i][j] == mat2[i][j]) is testing to see if the corresponding elements of the 2 matrices have the same value. Looking at it in context: if(mat1[i][j] == mat2[i][j]){ b = b & true; } else{ b = b &false; } is a rather cumbersome way of saying this: if(mat1[i][j] != mat2[i][j]){ b = … Read more