122. Data Conversion and Encoding-ii

Question.4

Two developers print the binary representation of uint8_t val = 0xB4 (10110100):

Developer A — MSB first:

for (int i = 7; i >= 0; i--)
   printf("%d", (val >> i) & 1);

Developer B — LSB first:

for (int i = 0; i < 8; i++)
   printf("%d", (val >> i) & 1);

Developer A prints 10110100. What does Developer B print?

Need Help? Refer to the Quick Guide below

Select Answer