Turn on k’th bit in a number | Bit manipulation.

Опубликовано: 05 Февраль 2025
на канале: Web Dev ET
13
0

Turn on k’th bit in a number | Bit manipulation

In this video, we will learn how to turn on the k’th bit in a number using bit manipulation. We will also see how to do this in JS

Bit manipulation

Bit manipulation is a technique that allows us to manipulate individual bits in a number. This can be useful for a variety of tasks, such as checking if a number is even or odd, or finding the position of a particular bit in a number.

Turning on the k’th bit
Here are some resources that you may find helpful:

[Turn off k’th bit in a number | Bit manipulation.](   • Turn off k’th bit in a number | Bit m...  )