Difference between revisions of "CSC231 Exercises with Signed Numbers"
(Created page with "--~~~~ ---- <br /> =Binary Addition in Various Systems= <center>800px</center> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <b...") |
(→Binary Addition in Various Systems) |
||
Line 9: | Line 9: | ||
<br /> | <br /> | ||
+ | =Exercise 1= | ||
+ | An program written in some unspecified language contains an array of 10 bytes. The values of the 10 bytes are 0x10, 0xff, 0xf1, 0x00, 0x00, 0xfe, 0x73, 0x01, 0x02, 0x7f. | ||
+ | |||
+ | Are these values used to represent signed numbers, unsigned numbers, numbers in 2's complement, numbers in 1's complement, or numbers in signed magnitude? | ||
+ | |||
<br /> | <br /> |
Revision as of 08:40, 1 October 2012
--D. Thiebaut 09:37, 1 October 2012 (EDT)
Binary Addition in Various Systems
Exercise 1
An program written in some unspecified language contains an array of 10 bytes. The values of the 10 bytes are 0x10, 0xff, 0xf1, 0x00, 0x00, 0xfe, 0x73, 0x01, 0x02, 0x7f.
Are these values used to represent signed numbers, unsigned numbers, numbers in 2's complement, numbers in 1's complement, or numbers in signed magnitude?