Setting a bit

0000 → bit 2 to 1 → 0100

You can also choose a level by clicking a star.

About the course

Description
Setting the chosen bit to 1 or to 0
More information
Bitwise operations work with each bit of a number separately.
Sample question
0000 → bit 2 to 1 → 0100
Author
Jiří Preisler
Version
1.0