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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started