

#1




Bitwise Operators redefinitions
Bitwise Operators redefinitions
1. Bitwise NOT (~) The bitwise NOT operator (~) inverts the bits of its operand: if 1 then 0 if 0 then 1 we will not I if input is unchanged and N if input is inverted. 2. Bitwise AND (&) the result of and will be 0 if any operand is 0 0 and ? = ? and 0 = 0 1 and 1 = 1 if one bit is 0 result 0 if one bit is 1 result the other bit 3. Bitwise OR () the result of and will be 1 if any operand is 1 1 or ? = ? or 1 = 1 0 or 0 = 0 if one bit is 1 result 1 if one bit is 0 result the other bit 4. Bitwise XOR (^) Same as xor except when 1 xor 1 = 0 if one bit is 0 input : I if one bit is 1 inverted input: N 