Multiple choice technology programming languages

C++

  1. &&

  2. ||

  3. !

  4. None of the Above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In C++, logical NOT (!) has higher precedence than logical AND (&&) and logical OR (||). This means expressions like !a && b are evaluated as (!a) && b, not !(a && b). The precedence hierarchy places unary operators above binary logical operators.