title: Variably modified 'variable_name' at file scope error?
body: <p>New to C. I'm getting the following error when compiling:</p>
  
  <pre><code>error: variably modified 'header' at file scope
  error: variably modified 'sequence' at file scope
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>struct list{
    char header[list_header_size];
    char sequence[list_sequence_size];
    struct list *next;
  };
  </code></pre>
  
  <p>I thought the error meant that the compiler needed to know what these variables were from the beginning. So, I moved main(), which is where the struct is called, to the end of the program. I also tried declaring the variables at beginning of the program, but I'm not sure if I did that correctly. I tried   <code>char header;</code>   and    <code>char header[];</code></p>