I think everyone knows about links and pointers.
In general, when I tried to display the address of a variable ( cout << &a << endl; ), I received a hexadecimal number. What does it mean and does it make sense for a programmer?

    3 answers 3

    It means the address in memory where the variable a is stored. It is usually useful when debugging.

      Through the link, the programmer can change the value of the variable, or you can simply pass this link to some function, instead of copying the entire object. Of course there is a sense, but not in the hexadecimal number itself, but in the perception of this number.

        It will make sense when passing arguments via pointers, instead of whole big data. When the pointer is initialized, its memory is written with & object address. And this variable, when passed to a function, shows how it stores this data in the program's memory.