title: Trying to assign a variable as the length of an array in C
body: <p>I'm trying to get n specific number of values from the user, to do this I went the easy way and asked the user to enter a specific number of values to be entered.
  This amount of values is saved in a variable, for example "<em>x</em>": </p>
  
  <pre><code>int x;
  printf("Enter the number of values to be entered: ");
  scanf("%d", &amp;x);
  int array[x];
  </code></pre>
  
  <p>So when I try to run the code I get the following message:</p>
  
  <p><strong>Constant Expression Required</strong></p>
  
  <p>Why does this happens? How could I fix it?</p>