Question: Let say I have a long binary number a = 010001010010100 If I want to store the 8-bit in the back in variable b, how
Let say I have a long binary number a = 010001010010100 If I want to store the 8-bit in the back in variable b, how do I do that in shifting? I have tried but failed. I did, b = 0 b = (b | (a<<7)) >> 7 but failed!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
