Question

4. [10 marksLet us consider a system where every integer is unsigned and uses 11 bits. Most programming languages provide way

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)integer x
To find last 5 bit
(00000011111)2 = 31

to find integer that corresponds to last 5 bits of x = (x & 31)

(b)integer x
To find next 4 bit of x
first shift x right by 5 bit x>>5
(00000001111)2 = 15

to find integer that corresponds to next 4 bits of x = ((x>>5) & 15)

Add a comment
Know the answer?
Add Answer to:
4. [10 marksLet us consider a system where every integer is unsigned and uses 11 bits....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT