title: C - error: storage size of ‘a’ isn’t known
body: <p>This is my C program...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  struct xyx {
      int x;
      int y;
      char c;
      char str[20];
      int arr[2];
  };
  
  int main(void)
  {
      struct xyz a;
      a.x = 100;
      printf("%d\n", a.x);
      return 0;
  }
  </code></pre>
  
  <p>This is the error that I am getting....</p>
  
  <p>Press ENTER or type command to continue</p>
  
  <pre>
  13structtest.c: In function ‘main’:
  13structtest.c:13:13: error: storage size of ‘a’ isn’t known
  13structtest.c:13:13: warning: unused variable ‘a’ [-Wunused-variable]
  </pre>