title: Why is array not printing?
body: <p>I know its something simple but I cant figure out why my array is not printing once the user enters the size and integers. I finally was able to get the user to determine the size of the array and enter their own integers but now the program returns right after.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      //Declare a size variable
      int size = 0;
      
      //Ask user how many numbers are in list:
      printf(&quot;How many integers?&quot;);
      scanf(&quot;%d&quot;, &amp;size);
      
      printf(&quot;Please enter integers:&quot;);
      int arr[size];
      scanf(&quot;%d&quot;, arr);
      
      //Calculate length of array
      int length = sizeof(arr)/sizeof(arr[0]);
      
      //Test print to see if array is returning the right amount of integers.
      //printf(&quot;%d&quot;, length);
      
      //Print original array
      for(int i = 0; i &gt; length; i++)
      {
          printf(&quot;%d&quot;, arr[i]);
      }
      
      printf(&quot;\n&quot;);
      return 0;
  }
  </code></pre>