Salem's solution seemed like a good clean idea without the need for a "goto," unless the side effect they mentioned (the values of 'i' and 'j' being changed) had a detrimental effect on any code...
Type: Posts; User: Matticus
Salem's solution seemed like a good clean idea without the need for a "goto," unless the side effect they mentioned (the values of 'i' and 'j' being changed) had a detrimental effect on any code...
Pardon me for nitpicking, but you forgot the braces around the statements controlled by "if()."
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
if ( check_rows(i,j) == 0 ) {...