4/26/2023 0 Comments Convert computer code to text![]() The key takeaway is that there is no such thing as a "number" on a computer. The hex values 0x35, 0x36 and 0x38 are just short-hand notations for the underlying bit sequences 00110101, 0011011000, which is what the hardware actually works in. The representation of the numeric value would look like: Address Value CommentĠxabab1220 0x38 The hex representation of the decimal number 56 "56" might be laid out like this in memory: Address Value CommentĠxabab1212 0x35 This is the hex representation of the ASCII code for "5"Ġxabab1213 0x36 This is the hex representation of the ASCII code for "6"Ġxabab1214 0x00 Assuming null-terminated strings as in C The compiler uses an algorithm to convert the string of decimal digits "56" to a numeric value ultimately stored as a string of bits "00111000".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |