Computer Science 237 |
Lecture 04: Signed Arithmetic, Logical Operations
Date: September 15, 2006
==
, !
, !=
, &&
, ||
) - note short-circuit evaluation
&
) - result true when both operands true
|
) - result true when either operand true
^
) - result true when exactly one operand true
~
) - result true when operand false
+
) vs. bitwise XOR (^
).
x>>n
or x<<n
)