Home Segments Index Top Previous Next

486: Practice

Explain how you can use the bitwise-augmented-or operator, |=, to set a particular bit in a variable without disturbing the others. Then, explain how you can use the bitwise-augmented-and operator, &=, to reset a particular bit in a variable without disturbing the others.