Console::WriteLine(pointer*) displays boolean instead of mem location

Hey I am kinda new to c++.net.  How come when I use the WriteLine() method with a pointer in the argument, the console displays only true or false instead of the mem location?

thanks
yattiasAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
lakshman_ceConnect With a Mentor Commented:
Type case to int
For e.g.
String *str = new String("Hello");
Console::WriteLine((int)&str);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.