Bitwise Operators: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→AND: Removed the "8 bit architecture" explanation since no reference to 8 bits was made in the properties.) |
Puppydrum64 (talk | contribs) m (→OR) |
||
Line 70: | Line 70: | ||
When we say "or" in the English language, we usually mean "one or the other, but not both." This isn't the case in programming. That's actually a different operator which will be covered later. |
When we say "or" in the English language, we usually mean "one or the other, but not both." This isn't the case in programming. That's actually a different operator which will be covered later. |
||
A few properties of OR that aren't readily apparent. |
A few properties of OR that aren't readily apparent. |
||
For all numbers A: |
For all numbers A: |
||
* <code>A | 0 = A</code> |
* <code>A | 0 = A</code> |