Logical Operators in C

前端 未结 8 2057
说谎
说谎 2020-11-27 08:25

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

8条回答
  •  广开言路
    2020-11-27 09:08

    && operator:

    If the left operand and the right operand are both different than 0 it evaluates to 1 otherwise it evaluates to 0.

    If the left operand is 0, the right operand is not evaluated and the result is 0.

    0x65 && 0x55 is evaluated to 1.

提交回复
热议问题