Integer Bitwise Operators: ~, &, |, ^ – Basic Elements, Primitive Data Types, and Operators
2.16 Integer Bitwise Operators: ~, &, |, ^ A review of integer representation (p. 33) is recommended before continuing with this section on how integer bitwise operators can be applied to values of integral data types. Integer bitwise operators include the unary operator ~ (bitwise complement) and the binary operators & (bitwise AND), | (bitwise … Read more