Search:

Type: Posts; User: Don B.

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,179

    Never mind. I see what I did what. B. !( 1 ||...

    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
  2. Replies
    3
    Views
    1,179

    Question about Boolean expression

    !( 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).
    ...
Results 1 to 2 of 2