Bitwise Operators 2: The OR Operation

preview_player
Показать описание
This computer science video describes the bitwise operation OR. It explains how the OR operation works with unsigned integers and how the OR operation can be used with a bitmask to manipulate the contents of a register containing bit flags. The equivalent OR operators are demonstrated in VB.NET, JavaScript and Python.
Рекомендации по теме
Комментарии
Автор

If I had, say, five buttons and I need only one to always be active. And that when I press another, the rest of the buttons are deactivated, could I in this case use bitwise operators and bitmask to make my code more efficient?

ivanyoed