+ 3
"All pointers share the same data type - a long hexadecimal number..."
Please explain that line from the course.
3 Réponses
+ 4
all locations of variables are made of a long hexadecimal number. (i.e. 0x12345678)
pointers contain locations of variables.
so pointers contain a long hexadecimal number.
+ 4
the pointer contains this lonely information : the address to the pointed element. In programming, addresses are not string like "3rd street, lovely blue house n°42, San Fransisco" but numbers. hexadecimal is just a trick to display that number being the closest to binary but in a shortest way. "Long" is for being less limited than just "int".
+ 2
Oh! Thanks.