Question:

Which operator has the lowest precedence among logical operators?

Show Hint

Logical operator precedence: \[ \boxed{ ! \;\gt \; \&\& \;\gt \; || } \] where \[ \begin{aligned} ! &\rightarrow \text{Logical NOT}\\ \&\& &\rightarrow \text{Logical AND}\\ || &\rightarrow \text{Logical OR} \end{aligned} \]
Updated On: Jul 23, 2026
  • !
  • &&
  • ||
  • ==
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The precedence of common logical operators in C is \[ \boxed{ ! \;\gt \; \&\& \;\gt \; || } \] Thus, the logical OR operator || has the lowest precedence among the logical operators. Therefore, \[ \boxed{(C)} \] is the correct answer.
Was this answer helpful?
0
0