[Solved] What does “&” do in this example?
As the comments and answer suggest, this is a bitwise operator. Bitwise operators treat their operands as groups of bits when they operate on them. A bitwise and will, as I’m sure you could guess, and two bits, so a truth table would look like: A | B | A & B —|—|—— 0 | … Read more