title: can not print address of a pointer in c++
body: <p>I'm new in c++. I wrote this program.</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main(void) {
      int x=24;
      char y='A';
      char* pchar=&amp;y;
      int* pint=&amp;x;
  
      cout &lt;&lt;"pchar= "&lt;&lt;hex&lt;&lt;&amp;pchar&lt;&lt;endl;
      cout &lt;&lt;"pint = "&lt;&lt;hex&lt;&lt;&amp;pint&lt;&lt;endl;
      cout &lt;&lt;endl;
      cout &lt;&lt;"pchar= "&lt;&lt;hex&lt;&lt;pchar&lt;&lt;endl;
      cout &lt;&lt;"pint = "&lt;&lt;hex&lt;&lt;pint&lt;&lt;endl;
  
      pchar=NULL;
      pint=NULL;
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>and its result 
  <img src="https://i.stack.imgur.com/Si0lr.png" alt="https://www.dropbox.com/s/wzxp1tkuqgw5p3g/Screenshot%202014-02-18%2022.52.29.png"></p>
  
  <p>Can you help me to understand why I can't print the address of variables without <code>&amp;</code>?
  I think <code>pchar</code> is already the address of <code>y</code>.</p>
  
  <p>thanks</p>