1,885
edits
Changes
→AND
Therefore the bitwise ''AND'' is used to '''clears bits''' to a value of 0.
For example, bits 0-:3 can be cleared to 0 while preserving the remaining bits in a byte by ANDing a mask of 11110000 (0xF0):
{|cellspacing="0" cellpadding="5" border="1"
|Output||bgcolor="yellow"|0||bgcolor="yellow"|1||bgcolor="yellow"|0||bgcolor="yellow"|1||bgcolor="yellow"|0||bgcolor="yellow"|0||bgcolor="yellow"|0||bgcolor="yellow"|0
|}
=== XOR ===