Skip to content

Commit 14558db

Browse files
mattduerrmeierswaroopch
authored andcommitted
update : changed else for otherwise
1 parent 5a3f1f1 commit 14558db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

op_exp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ Here is a quick overview of the available operators:
6161
- `11` is represented in bits by `1011` which when right shifted by 1 bit gives `101`which is the decimal `5`.
6262

6363
- `&` (bit-wise AND)
64-
- Bit-wise AND of the numbers: if both bits are `1`, the result is `1`. Else it's `0`.
64+
- Bit-wise AND of the numbers: if both bits are `1`, the result is `1`. Otherwise, it's `0`.
6565
- `5 & 3` gives `1` (`0101 & 0011` gives `0001`)
6666

6767
- `|` (bit-wise OR)
68-
- Bitwise OR of the numbers: if both bits are `0`, the result is `0`. Else it's `1`.
68+
- Bitwise OR of the numbers: if both bits are `0`, the result is `0`. Otherwise, it's `1`.
6969
- `5 | 3` gives `7` (`0101 | 0011` gives `0111`)
7070

7171
- `^` (bit-wise XOR)
72-
- Bitwise XOR of the numbers: if both bits (`1 or 0`) are the same, the result is `0`. Else it's `1`.
72+
- Bitwise XOR of the numbers: if both bits (`1 or 0`) are the same, the result is `0`. Otherwise, it's `1`.
7373
- `5 ^ 3` gives `6` (`O101 ^ 0011` gives `0110`)
7474

7575
- `~` (bit-wise invert)

0 commit comments

Comments
 (0)