¾ Introduction to C Language ¾ - University of Pennsylvania

Bitwise Operators Symbol Operation Usage Precedence Assoc ~ bitwise NOT ~x 4 r-to-l right shift x >> y 8l-to-r & bitwiseANDbitwise AND x&yx & y 1111 ll --totorr ^ bitwise XOR x ^ y 12 l-to-r | bitwise OR x | y 13 l-to-r Bit-wise vs Logical AND 1 & 8 = 0 (000001 AND 001000 = 000000) 1 && 8 = 1 (True && True = True) CIT 593 29 AND Useful for clearing bits ¾AND ... ................
................