I just found this “C++” today and i cannot make sense of it:
if(array[i][j]) {--i;--j;}
can anyone explains to me how this work? I just don’t get it. What is the condition here? It seems like it would be true every time, but when i got rid of the IF (so only this {--i;--j;} left.) it doesn’t work the same.
I’m quite new to C++ so go easy with the explanations! 🙂
Thanks!
assuming array is an array of int (or other integral types) the condition will be false if and only if
array[i][j] == 0