Logic and arithmetic and logic or short

Check the left only Boolean logic and is to return the value false, but logic or to return the value true
Logic and
√ &&. . . No matter how right, left is true, that the right of return
× &&. . . No matter how right, left is false, then return to the left
Logical or
√ ||. . . No matter how right, left is true, then return to the left
× ||. . . No matter how right, left is false, that the right of return

Guess you like

Origin www.cnblogs.com/donutkiki/p/11448824.html