ProgrammingVery hard
Reversing the 8 bits of 0b00010110 gives which value in decimal?
- A. 22
- B. 96
- C. 104
- D. 208
Correct answer: C. 104
The bit string 00010110 reversed is 01101000, which is 64 + 32 + 8 = 104.
More C Programming questions
- The Gray code of 5 (binary 101), computed as n ^ (n >> 1), is which value?
- What is the parity of the number of set bits in 0b1011, so that the result is 1 when odd?
- What is the value of 2 + 3 << 1 & 7 in C?
- What is the value of 5 ^ 3 & 1 in C?
- unsigned int u = 1; int s = -2; printf("%u", u + s); What is printed with 32-bit unsigned int?
- With int a = -1 and unsigned int b = 0, what does the expression a < b evaluate to?