CSC373/406
:
C: Logical Operations in C
[36/42]
Operations for logical
not
,
and
,
inclusive-or
:
!
&&
||
Apply to any
integral
data type, signed or unsigned
char
short
int
long
Operators always return 0 or 1
!
1
==
0
!!
1
==
1
!
0
==
1
!!
0
==
0
!
55
==
0
!!
55
==