gaurav madan

Greenhorn
+ Follow
since Jul 03, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gaurav madan

thanks a lot everyone. i have understood the concept now...Operands will be evaluated first and due to the short circuit operation of || operator when it evaluates the left hand side to be true the rest of the evaluation on its right hand side is skipped..
thank you!
thanks a lot everyone. i have understood the concept now...Operands will be evaluated first and due to the short circuit operation of || operator when it evaluates the left hand side to be true the rest of the evaluation on its right hand side is skipped..
thank you!



The result comes out to be true,false,false because of short circuit evaluation of || operator...but if we go by precedence && has higher precedence than ||..
in that way && should be evaluated first and the answer should come out to be
true,true,true...
why isn't precedence rule followed here??
help required please !!

The result comes out to be true,false,false because of short circuit evaluation of || operator...but if we go by precedence && has higher precedence than ||..
in that way && should be evaluated first and the answer should come out to be
true,true,true...
why isn't precedence rule followed here??
help required please !!
12 years ago