I am having trouble trying to understand how logical operators work in C. I already understand how the bit-level operators work, and I also know that logical operators treat
&& operator:
&&
If the left operand and the right operand are both different than 0 it evaluates to 1 otherwise it evaluates to 0.
0
1
If the left operand is 0, the right operand is not evaluated and the result is 0.
0x65 && 0x55 is evaluated to 1.
0x65 && 0x55