Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
- 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | = 255 // just sum all the possible bit values in the table
- | | | | | | | |
- 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | = 10 // Representation of the 10 in bit
- 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | = 192 // Representation of the 192 in bit
- AND (&) Operator (7 & 9) The bits must be active in either rows
- 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | = 7
- 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | = 9
- 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | = 1 // Result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement