Originally posted by Francis Palattao:
Should'nt we evaluate b and c first because of the precedance. Now since b && c already evaluates to true we wont evaluate a anymore.
Should'nt we evaluate b and c first because of the precedance. Now since b && c already evaluates to true we won't evaluate a anymore.
Originally posted by Kirti Singh:
I've also read that "( )" have higher precednce over the operator " ||". Doesn't this mean that the statement
((b = true) && (c = true))
should be evaluted first ?
if i use short ckt operator thjen why result is different?
boolean bool=(a = true) | (b = true) & (c = true)
then o/p is
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton