Bitwise OR Assignment¶
Bitwise OR assignment operator (|=
) can be used to perform bitwise OR operation and assign it to a variable.
Syntax
variable |= expr
Example
a |= 0
b |= 1