title: Why is address of char data not displayed?
body: <pre><code>class Address {
        int i ;
        char b;
        string c;
        public:
             void showMap ( void ) ;
  };
  
  void Address :: showMap ( void ) {
              cout &lt;&lt; "address of int    :" &lt;&lt; &amp;i &lt;&lt; endl ;
              cout &lt;&lt; "address of char   :" &lt;&lt; &amp;b &lt;&lt; endl ;
              cout &lt;&lt; "address of string :" &lt;&lt; &amp;c &lt;&lt; endl ;
  }
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>         address of int    :  something
           address of char   :     // nothing, blank area, that is nothing displayed
           address of string :  something 
  </code></pre>
  
  <p><strong>Why?</strong></p>
  
  <p>Another interesting thing: if int, char, string is in public, then the output is</p>
  
  <pre><code>  ... int    :  something 
    ... char   :   
    ... string :  something_2
  </code></pre>
  
  <p><code>something_2 - something</code> is always equal to 8. <strong>Why? (not 9)</strong></p>