How can i write to the screen when i am working with console application?

I want to write the address of some variable which is in memory.