C++ examples for Operator:Bit Operator

Click the following links for the tutorial for Operator and Bit Operator.

- Perform left and right rotations
- The One's Complement Operator
- The Binary & (AND) Operator
- Bitwise Operations
- Initialize two variables and output the results of applying the ~,& , | and ^ operations
- Bitwise logical operators and Truth tables.
- Use the bitwise operator, &, to test the number to see if it is even or odd
- Unmasking packed data
- Using a mask to pack values into a variable
- Using the << operator to shift a value from the lower 16 bits of a int into the upper 16 bits.
- ^ (Exclusive Or) Operator
- | (Bitwise Or) Operator
- & (Bitwise And) Operator
- Right shifting negative values
- Using the bitwise shift operators.
- Bitwise AND, inclusive OR, exclusive OR and complement operators.
- Bitwise Operators
- Use bit field to create class DeckOfCards that represents a deck of playing cards
- What does the following program do: bit move
- Determines if a value is a multiple of X.
- Bitwise Operators and its meaning