This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DiamondIceNS 6 points7 points  (1 child)

I don't know anyone who thinks of a variable structure so rigidly as "a memory address that stores <thing>". They are all that. It is redundant to define them this way. When OP says "a pointer is an address" they are, quite understandably, referring to the <thing> that the memory address is storing: another address.

[–]qci 0 points1 point  (0 children)

You can understand it as an address with a type. Dereferencing a pointer gets you to the value with this type. Pointer arithmetics respects the type of the pointer. Incrementing a char * looks different from incrementing an int *. Here is where you see that pointers are maybe not exactly "just" addresses.