ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
hey dude
&&-means logical AND operation
||-means logical OR operation
give problem is
a=true;
b=false;
c=false
then
d=( a && b ) || c
//a && b-means (true && false)
//&&-return true when both input are true here one is true (a) another
//one is false(b) this will return false
//in next step it calculate false || C
// ||-return true when any one of the input true here both are false (a&&b)
// and c so result false will assigned to d
hence result d is false
mani-hellboy
Junior Poster in Training
69 posts since Feb 2012
Reputation Points: 0
Solved Threads: 7