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

Hey I am kinda new to  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?

Who is Participating?

Improve company productivity with a Business Account.Sign Up

lakshman_ceConnect With a Mentor Commented:
Type case to int
For e.g.
String *str = new String("Hello");
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.