Never mind. I see what I did what.
B. !( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR)
1 && 0 is evaluated first and results in 0
then you evaluate:
1 || 0
Type: Posts; User: Don B.
Never mind. I see what I did what.
B. !( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR)
1 && 0 is evaluated first and results in 0
then you evaluate:
1 || 0
!( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR)
The above is from the C++ tutorial. The tutorial gives the answer as 0 (or false) with the explanation, (AND is evaluated before OR).
...