title: Why is sizeof empty class 1 byte and not 2 bytes in C++?
body: <pre><code>class A         //class A
  {
     class B     // class B nested inside the class A
      { };       // empty class
  };
  </code></pre>
  
  <p>Why does the above class have a size of 1 byte instead of 2?</p>