C Logical Operators

Logical Operators

C language supports following 3 logical operators.

Operator Description Example
&& Logical AND (a && b) is false
|| Logical OR (a || b) is true
! Logical NOT (!a) is false

Share This Page on:


Ask Question