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

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!