What is the meaning of the address of a pointer?

Viewed 5626

If we have code:

int b = 10;
int* a = &b;
std::cout << a << " " << &a << " ";

As the result, the addresses are different.

But what's the meaning of address of a pointer?

A pointer has the value of a variable's address, since we have a varaible in memory. But we don't have the value of address stored in memory, so why we have the address of an address?

Maybe I have some misunderstandings, thank you for your help.

4 Answers
Related