Question:

Which operator has the lowest precedence among logical operators?

Show Hint

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

The Correct Option is C

Solution and Explanation

The precedence of common logical operators in C is \[ \boxed{ ! \;>\; \&\& \;>\; || } \] 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