What does this warning mean (i
and j
are not constants):
I have been trying to Google this but it does not give me any results.
I believe you need to understand what's going on in your statement at a deeper level.
0<=i
is a boolean expression, it will become true or false.
The result of that expression is then compared with 10.
So you end up with true <= 10
or false <= 10
.
I think you meant to write
if ( ( 0 <= i ) && ( i <= 10 ) )
You cannot connect clauses together the way you did.