Question: Bitshift in C. unsigned char y = 0x33 Unisgned Chars are 8 bits. printf(%02x, y >> (y >> 5)); How can I bitshift like this?

Bitshift in C.

unsigned char y = 0x33

Unisgned Chars are 8 bits.

printf("%02x", y >> (y >> 5));

How can I bitshift like this? The first shift in the parenthesis gives me 0x01 or 0000 0001. How do I do the second operation?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!