title: Declaring a structure variable of same type in which it is defined
body: <pre><code>struct Phant {
     int y;
     struct Phant y;
  };
  </code></pre>
  
  <p>In this code I am getting a compilation error.</p>
  
  <p>On writing the same thing in Java with just a minor change, i.e, replacing struct with class, the code runs perfectly</p>
  
  <pre><code>class Ded {
      int y;
      Ded s = new Ded();
  }
  </code></pre>
  
  <p>Why do I get a compilation error in the first snippet while the second snippet works?</p>