https://www.geeksforgeeks.org/bitwise-operators-in-c-cpp/
Definitions
Unary: requires only 1 operand Binary: requires 2 operands Ternary: requires 3 operands Nullary: requires 0 operands
Unary
| operator | link |
|---|---|
| - | |
| ++ | |
| — | |
| ! | |
| & | Memory Addresses |
| sizeof() | sizeof() |
| ~ | Ones Complement |
Binary
Arithmetic
| operator | link |
|---|---|
| + | |
| - | |
| * | |
| / | |
| % |
Relational
| operator | link |
|---|---|
| < | |
| ⇐ | |
| > | |
| >= | |
| == | |
| != |
Logical
| operator | link |
|---|---|
| && | |
| || |
Bitwise
| operator | link |
|---|---|
| & | Bitwise AND |
| | | Bitwise OR |
| ^ | Bitwise XOR |
| << | Bitwise Left Shift |
| >> | Bitwise Right Shift |
Assignment Operators
| operator | link |
|---|---|
| = | |
| += | |
| -= | |
| *= | |
| /= | |
| %= |
Ternary
| operator | link |
|---|---|
| ?: | Conditional Operator |
Nullary
| operator | link |
|---|---|
| throws | throw |