Pourquoi l'adresse de données char affiche pas?

class Address {
      int i ;
      char b;
      string c;
      public:
           void showMap ( void ) ;
};

void Address :: showMap ( void ) {
            cout << "address of int    :" << &i << endl ;
            cout << "address of char   :" << &b << endl ;
            cout << "address of string :" << &c << endl ;
}

La sortie est:

         address of int    :  something
         address of char   :     //nothing, blank area, that is nothing displayed
         address of string :  something 

Pourquoi?

Une autre chose intéressante: si l'int, char, string est en public, alors la sortie est

  ... int    :  something 
  ... char   :   
  ... string :  something_2

something_2 - something est toujours égal à 8. Pourquoi? (pas 9)

InformationsquelleAutor | 2011-02-01