title: Storing integers as an array by reading size of array and the elemnts of the array in a single line
body: <p>I am trying to create an array from the integers that a user inputs. They must be inputted on the same line, e.g. 5 1 2 3 1 6. The number of integers can be any amount.</p>
  
  <p>However, the first number + 1 determines the size of the array. E.g. if the user inputs the number 5 first, it must be followed by 5 other random integers thus making the length of the array 6. I'm getting confused on how to do this because there is so much user input. Thanks in advance!</p>
  
  <p>Here is my code so far, though i don't think it'll be much help:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      int arr_days[13];
      int i = 0;
      printf(" ");
      while(i &lt; 13) {
          scanf("%d", &amp;arr_days[i]);
          i = i + 1;
      }
      printf("%d", arr_days[0]);
      return 0;
  }
  </code></pre>