If we wanted to find the value (1 or 0) of the third bit from the right (bitNum = 2) of variable x, we should: int bit =
Posted: Sun May 15, 2022 1:11 pm
If we wanted to find the value (1 or 0) of the third bit from the right (bitNum = 2) of variable x, we should: int bit = (x >> 3) & 1; int bit = (x >> 2) & 1; int bit = x & 4; int bit = x >> 3; =