cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
adress to decimal number
adress to decimal number
Jul 18, 2011 at 11:34am UTC
julof26
(56)
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
Jul 18, 2011 at 11:58am UTC
Warnis
(230)
Why not, just cast the pointer to an int:
1
2
int
*a =
new
int
;
int
b = (
int
)a;
Jul 18, 2011 at 12:09pm UTC
julof26
(56)
thanks :)
Topic archived. No new replies allowed.