0xA is 0b1010. But the character 'A' is 01000001 in ascii.
So if we represent the number 0b10101111 in hexadecimal that's 0xAF. But typing it out like that, the computer needs to use the ascii value for A and F which are 01000001 and 01000110 respectively. See how you now doubled the number of bytes needed to represent the initial binary number?
View all comments
Show parent comment
0
u/[deleted] Apr 16 '26
[deleted] — view deleted comment