logical operators - Regarding Order of Precedence (c++) -
I'm reading on C ++ and I'm going to a section on the preceding order.
An example that I do not quite understand is this:
11> 5 || 6 & lt; 15 & amp; nbsp; Amp; 7> = 8
"This logical expression produces different results, depending on whether and or & amp; amp; amp; evaluation is done first. If the first is evaluated, the expression, if any one is understood that in any case, why it would be right / wrong, I make it commendable.
For your time Thank you.
If =
is evaluated first:
(11> 5 || 6 <15) & amp; amp; 7> = 8 (true = false) & amp; amp; amp; false truth & amp; amp; False false
If & amp; amp; and
are evaluated first:
11> 5 | | (6 <15 & 7> = 8) True || (True & amp; false) True || False Truth
Comments
Post a Comment