arpanmukherjee1
XLr8
hello people,
I was thinking about pointers that would retrieve the variable name and NOT the value....
i know that after compiled the prg does not have any var name.
but if i want to write a prg like
int a=2,b=3,sum;
sum=a+b;
cout<< THE VAR NAME "sum" <<sum;
even if the program is compiled int he debug mode
basically want to understand how var names are stored in c/c++;
I was thinking about pointers that would retrieve the variable name and NOT the value....
i know that after compiled the prg does not have any var name.
but if i want to write a prg like
int a=2,b=3,sum;
sum=a+b;
cout<< THE VAR NAME "sum" <<sum;
even if the program is compiled int he debug mode
basically want to understand how var names are stored in c/c++;