title: variable modified at file scope Struct C
body: <p>Hi I get compile error when I try to assign the struct with array size of global variable  which user will input in command line, then pass value back to variable that was declared globally.</p>
  
  <p>Here is just sample code</p>
  
  <pre><code>#include&lt;stdlib.h&gt;
  #include&lt;stdio.h&gt;
  
  int Type;
  
  struct list_el {
      int val;
  } list1[Type];
  
  struct list_el item;
  
  int main() {
      Type = 10; //just sample
  }
  </code></pre>
  
  <p>error </p>
  
  <blockquote>
    <p>variable modified at file scope Struct C</p>
  </blockquote>
  
  <p>Is there anyway to fix the problem? I need it to work globally.</p>
  
  <p>Thank you so much.</p>