user input in struct in C?
<pre><code>int a;
scanf("%d",a);

typedef struct mylist {
    int info[a];
    struct mylist *link;

} Node;
</code></pre>

<p>this is my very simple struct and variable 'a' that don't work.</p>

<p>The thing which I want my program to do is to read input from the user and insert the digit into the struct (the user can determine the size of the array), however, I don't know how to do it since I get an error:</p>

<blockquote>
  <p>"variably modified ‘info’ at file scope".</p>
</blockquote>

<p>I want to know whether it is possible to do this in a simple way.</p>