C++ Programming/Programming Languages/C++/Code/Keywords/and eq
Appearance
and_eq is the bitwise and operator. The alternative writing is &.
example:
| variable | bit | hex |
|---|---|---|
| a | 0011 | 3 |
| b | 0110 | 6 |
| a and_eq b | 0010 | 2 |
and_eq is the bitwise and operator. The alternative writing is &.
example:
| variable | bit | hex |
|---|---|---|
| a | 0011 | 3 |
| b | 0110 | 6 |
| a and_eq b | 0010 | 2 |