Concept Flow - Bit Manipulation Basics AND OR XOR NOT Left Right Shift
Start with two numbers
Apply AND (&)
→Result: bits 1 only if both bits 1
Apply OR (|)
→Result: bits 1 if any bit 1
Apply XOR (^)
→Result: bits 1 if bits differ
Apply NOT (~)
→Result: bits flipped
Apply Left Shift (<<)
→Bits shifted left, zeros fill right
Apply Right Shift (>>)
→Bits shifted right, sign bit fills left
Apply Unsigned Right Shift (>>>)
→Bits shifted right, zeros fill left
End with new number results
Start with two numbers, apply each bit operation step-by-step, producing new bit patterns and results.
