Bitwise Calculator
Perform low-level bitwise operations on integer values.
Bitwise Operations
Bitwise operations manipulate individual bits of binary numbers. They are fundamental to computer programming and digital logic.
Common Operators
- AND (&): Returns 1 only if both bits are 1.
- OR (|): Returns 1 if at least one bit is 1.
- XOR (^): Returns 1 if bits are different.
- Shift (<< >>): Moves bits left or right, effectively multiplying or dividing by powers of 2.
Example (AND)
12 (1100) AND 5 (0101) = 4 (0100)