title: Why is the size of an empty class in C++ not zero?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/621616/c-what-is-the-size-of-an-object-of-an-empty-class">C++: What is the size of an object of an empty class?</a>  </p>
  </blockquote>
  
  
  
  <p>Why does the following output <code>1</code>?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  class Test
  {
  };
  
  int main()
  {
      std::cout &lt;&lt; sizeof(Test);
      return 0;
  }
  </code></pre>