posted 18 years ago
The value was true,flase,false..
Should this be boolean x = (a=true) || (b = true) && (c = true);
&& has more precedence over ||
So (a=true) || ((b=true) && (c=true))
= true || (true && true)
= true || true..
So value should be true,true,true..
Is n't this similar to 1 + 2 * 3 = 1 + (2 * 3) = 1 + 6 = 7
Please advise the rules of precedence
Thanks
Satya