← Back to Games

🔎 Bit Reader Machine

Extract the Kth bit from the right - precision reading!

📟 The Reader
(n >> k) & 1
Bit at position K
?

📚 Reading the Kth Bit

To read the bit at position k (0-indexed from right):

bit = (n >> k) & 1

// Step 1: Shift right by k positions
// Step 2: AND with 1 to isolate the bit

// Example: n=42 (101010), k=3
// 42 >> 3 = 5 (000101)
// 5 & 1 = 1 ✓