Mega Code Archive

 
Categories / C# Tutorial / Operator
 

The Bitwise Operators

The bitwise operators act directly upon the bits of their operands. They are defined only for integer operands. They cannot be used on bool, float, or double. The Bitwise Operators OperatorResult &Bitwise AND |Bitwise OR ^Bitwise exclusive OR (XOR) Shift right Shift left ~One's complement (unary NOT) pqp & qp | qp ^ q~p 000001 100110 010111 111100