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
Get step-by-step solutions from verified subject matter experts
