An 8-bit variable is used to store the decimal value 14. What are :
(i) the hexadecimal representation of the number;
(ii) the binary representation of the number.
Can anyone help me understand this?|||The binary of 14 is
1110
That is 4 bits.
So in 8 bits that will be
0000 1110
The hex of that will be
0e
or
0E
which ever you prefer.
Have fun.|||The homework question is testing your understanding of the binary and hexadecimal number bases, both of which are quintessential to the way computers work:
Hex is: 0E
Binary is: 00001110|||Hexadecimal: 0E
Decimal: 00001110
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment