variable's name address

Ladies, Gentlemen,

Please let me introduce myself. I'm someone just learning c++. Am Greek living in France homeless and forced to travel from town to town, and get Internet access for free in public libraries under many restrictions. I have learned that by ampersand (&) I can get address of variable's value. My question: is it possible to get the address of variable's name?

With regards and friendship
Georges Theodosiou
The Straw Man
Last edited on
The variable name is symbolic only, there is no address.
The variable name is symbolic only, there is no address.


I think he MAY have meant:

"Is it possible to get the address FROM the variable's name."


Maybe. I can't be certain, but I suspect that was his intended question, and English isn't his first language (no disrespect to either party).
Mr coder777 and Mr Yawzheek,

Please let me express my many thanks for your replies. My first language is Greek, but I meant just that I wrote. I say again I'm just beginner in C++.

With regards and friendship
Georges Theodosiou
No, the name does not exist in compiled code. (It only exists in a lookup table when compiling.)

There are caveats and exceptions when dealing with library code (DLLs and SOs), but those are exceptional.

I hope things work out for you.
My first language is Greek, but I meant just that I wrote.


Ok. Didn't mean any offense (so please don't be offended) but I had to make sure :) A simple change in one word and you would have asked an entirely different question, and I've caused quite the bit of confusion when I speak languages that aren't English because of missing or extra words :P Good luck man!
Dear Gentlemen,

Please let me express my many thanks for your replies. From all 3 answers I conclude negative answer for my question.

With regards and friendship
Georges Theodosiou
Topic archived. No new replies allowed.