I understand that pointers are used to point to objects, so in a program you have to be the same. But there were also how the names of the pointers are stored. It would be redundant to declare a pointer name that takes up more resources than the object it points to, for example:
int intOne = 0;
int *this_pointer_is_pointing_towards_intOne = &intOne;
I know this is a ridiculous example, but I was just trying to understand this idea.
Edit: The name of the pointer should be stored somewhere, occupying more bytes than the address of the object indicated on the object.
source
share