Grokking Go
Vote

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

OperatorDescriptionExample (Binary)Example (Decimal)
& (AND)Performs bitwise AND1010 & 0110 → 001010 & 6 → 2
| (OR)Performs bitwise OR1010 | 0110 → 111010 | 6 → `14

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content