Chapter 15
1: | Convert the following decimal values to binary:
|
A1: |
|
2: | Convert the following binary values to decimal, octal, and hexadecimal:
|
A2: |
|
3: | Evaluate the following expressions; assume each value is 8 bits:
|
A3: |
|
4: | Evaluate the following expressions; assume each value is 8 bits:
|
A4: |
|
5: | Because the ASCII code uses only the final 7 bits, sometimes it is desirable to mask off the other bits. What's the appropriate mask in binary? In decimal? In octal? In hexadecimal? ... |
Get C Primer Plus, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.