+ 12

Guess the output .

cout<<(1||0&&0);

11th Jun 2017, 4:54 AM
Prabhu Nithin
Prabhu Nithin - avatar
11 Réponses
+ 12
you're right
11th Jun 2017, 4:58 AM
Prabhu Nithin
Prabhu Nithin - avatar
+ 10
it's not yet approved .
11th Jun 2017, 4:57 AM
Prabhu Nithin
Prabhu Nithin - avatar
+ 10
Is it because of right to left associativity ?
11th Jun 2017, 4:59 AM
Prabhu Nithin
Prabhu Nithin - avatar
+ 10
thanks @calvin
11th Jun 2017, 5:04 AM
Prabhu Nithin
Prabhu Nithin - avatar
+ 6
1
11th Jun 2017, 4:58 AM
venkata ramarao yarlagadda
venkata ramarao yarlagadda - avatar
+ 5
ya exactly @calvin
11th Jun 2017, 5:03 AM
venkata ramarao yarlagadda
venkata ramarao yarlagadda - avatar
+ 4
1
11th Jun 2017, 4:57 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
11th Jun 2017, 5:06 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 3
&& has higher precedence order then ||
11th Jun 2017, 5:02 AM
Calviղ
Calviղ - avatar
+ 2
Put to your factory quiz.
11th Jun 2017, 4:56 AM
Calviղ
Calviղ - avatar
0
0&&0 = 0 (false) 0||1 = 1 (true)
30th Jul 2017, 8:15 PM
A.R
A.R - avatar