Question: C program for bit masking Hi, the input will be something like 0xffff0005 or 0x3ff0005. and i need to get the most significant bit part

C program for bit masking

Hi, the input will be something like 0xffff0005 or 0x3ff0005. and i need to get the most significant bit part by itself. for example in the second case 0x3ff0005, i need an int that just has 0x3ff in it. thank you ver much. the professor said that we need to get the 16 most significant bits. Also, I believe I need to turn 0x3ff0005 into 0x03ff0005 for this to work since that case is shorter than the first one. thanks. Again 0xffff0005 must return 0xffff. The 5 at the end needs to get out of there and it needs to be shifted

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!