Grokking Go
0% completed
Bitwise operators
Bitwise operators are used to perform operations on binary representations of numbers. These operators work at the bit level and are commonly used in low-level programming, cryptography, and performance optimizations.
List of Bitwise Operators in Go
| Operator | Description | Example (Binary) | Example (Decimal) |
|---|---|---|---|
& (AND) | Performs bitwise AND | 1010 & 0110 → 0010 | 10 & 6 → 2 |
| (OR) | Performs bitwise OR | 1010 | 0110 → 1110 | 10 | 6 → `14 |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%