title: size of class with empty array in C++
body: <p>AFAIK, the <code>sizeof</code> should not return <code>0</code>, but the following program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  class A {
  public:
      int a[0];
  };
  
  int main() {
     A obj;
     std::cout &lt;&lt; sizeof(obj) &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>outputs <code>0</code>. Why?</p>