If we wanted to find the value (1 or 0) of the third bit from the right (bitNum = 2) of variable x, we should: O int bit
Posted: Sat May 14, 2022 6:40 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: O int bit = x & 4 int bit = (x >> 3) & 1: int bit = x >> 3: int bit = (x >> 2) & 1: