techiehub.in

Bitwise Cheat Sheet

Bitwise OR (|) if either of the bits is 1, it gives 1, else it shows 0 Bitwise AND (&) if both bits are 1, it gives 1, else it shows 0. Bitwise XOR(^) if corresponding bits are different, it gives 1, else it shows 0. Bitwise Complement(~) with all bits inverted, which means it […]

September 27, 2024 | Data Structure | No comments

Categories