Is it valid to make a cycle like this one?
for(i=0,j=0;a[i][j]==0;i++,j++)
Would it increase both variables with each iteration performed?
Is it valid to make a cycle like this one?
for(i=0,j=0;a[i][j]==0;i++,j++)
Would it increase both variables with each iteration performed?
You can do something like:
int j = 0;
for(int i=0;a[i][j]==0;i++){
//Código
j++;
}
Just remember to do j++
at the end of the cycle.