+ 1

Hexadecimal addressing of integers

just wondering why in the playground the hexadecimal address is Xo29fee8 for an integer if an integer is 2 bytes why do you have 24 bits to address 16 bits?

20th Jan 2017, 8:49 AM
Jason Hoffman
Jason Hoffman - avatar
1 Respuesta
+ 1
I guess X029fee8 is only the *address* of that integer. Roughly speaking, the place in the RAM where the integer is stored, rather than the integer itself. [EDIT] I mean, every pointer to any data type (integer, char, string, double, etc.) will have 24 bits.
20th Jan 2017, 8:55 AM
Álvaro