+ 12
Guess the output .
cout<<(1||0&&0);
11 Réponses
+ 12
you're right
+ 10
it's not yet approved .
+ 10
Is it because of right to left associativity ?
+ 10
thanks @calvin
+ 6
1
+ 5
ya exactly @calvin
+ 4
1
+ 4
+ 3
&& has higher precedence order then ||
+ 2
Put to your factory quiz.
0
0&&0 = 0 (false)
0||1 = 1 (true)