Autosave: 2024-04-20 15:10:04
This commit is contained in:
parent
0912a93705
commit
89633a997d
2 changed files with 16 additions and 0 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
|
@ -11,4 +11,20 @@ In addition to mathematical, logical and comparison operators, there are
|
|||
_bitwise operators_. These operators execute conditions based on the actual bits
|
||||
of a value rather than the values that the bits are encoded to represent.
|
||||
|
||||
Bitwise operators are typically represented with single characters of existing
|
||||
operators, e.g. `&` instead of `&&`:
|
||||
|
||||
| Bitwise operation | Operator |
|
||||
| ----------------- | ------------- |
|
||||
| AND | `&` |
|
||||
| OR | (single pipe) |
|
||||
| NOT | `~` |
|
||||
|
||||
An example of using the `&` operator:
|
||||
|
||||
```py
|
||||
x =5
|
||||
y = 3
|
||||
```
|
||||
|
||||
## Related notes
|
||||
|
|
Loading…
Add table
Reference in a new issue