Page 1 of 1

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
by answerhappygod
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 1
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 1 (16.6 KiB) Viewed 38 times
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: