Skip to content

Check If Kth Bit Is Set/Unset Using Right Shift

In the kth bit set/unset problem, we need to write a program that checks whether the kth bit of a number is 1 or 0.

Gopi Gorantala
Gopi Gorantala
4 min read