I'm a little c开发者_开发知识库onfused here:
I'm trying to reverse engineer the ASCII value 65. In the book I am reading it says:
Decimal: 65
Hex: 41
Octal: 101
But 65 in its binary representation is:
0010 0001
And 0010
in hex is 2, while 0001
is 1, which indicates that the hex value "should" be: 21.
Where did I go wrong?
65 dec in bin is 0100 0001.
you have the binary wrong - it should be 0100 0001 - your bin to hex is fine
incidentally bin->oct->dec->hex is one of the things calc.exe is actually really useful for
65 in decimal is:
0100 0001
You're off by a digit in the first nibble.
精彩评论