adress to decimal number

Hi i have a question,
how can I convert adress of some variable to a decimal number?

only for fun, I want to know that number :D

thanks
Why not, just cast the pointer to an int:
1
2
int *a = new int;
int b = (int)a;
thanks :)
Topic archived. No new replies allowed.