c# - OR, AND Operator -


How to calculate the value of a newbie question formula AFB, where the F-binary function OR is?

There is a difference between conditional operators & amp; Amp; And || And boolean operators & amp; And | Mainly this is the difference of bias (which operators are evaluated first) and also & amp; Amp; And || 'Escape' means that it is a sequence ...

  cond1 & amp; Amp; Condo 2 & amp; Cond3  

If cond1 is wrong, cond2 or cond3 is not evaluated because the code correctly assumes that its value, expression can not be correct. Similarly ...

  cond1 || Kando 2 || Cond3  

If cond1 is correct, then cond2 or cond3 is not evaluated because there is no point even though the expression is correct.

Bit wise counterparts, & amp; And | Are not saved from

Hope that helps.


Comments