l can have address ofvariable a using &a.
could l have its name from his address?
that is, if l know a variable a has address &a can l have his name a ?
if you are dealing with objects you can self name them.
thing something("something");
thing * why = &something;
cout << *why.myname(); //assuming you populated a string with the name and a method to return it.
if its more than one object or not even objects but ints etc, you can do the same thing by making a little template class with a pointer and a string (or a void * and a enum/type field)
mysillypointer <thing*> msp(&something, "something");
The underlying question is key. This could be anything from a nifty debugging tool to a 'just because I can' to a total lack of understanding of pointers. If you can explain what you really are trying to accomplish, you may get a better answer than just mechanical what-ifs that could do sorta kinda what you want.