We usually use logical operators if need to combine boolean expressions. I was wondering about the expressions if don't use logical operators.
int x=101;
if(90<=x<=100)
cout<<'A';
This code still prints 'A' on console. Can you please help me to understand that how and in which order this boolean expression would be evaluated.
This is a common source of errors, because it looks right, and sytactically it is correct.
This is equivalent to
which is
and as
true
can convert to1
this is