title: Array[n] vs Array[10] - Initializing array with variable vs numeric literal
body: <p>I am having the following issue with my code:</p>
  
  <pre><code>int n = 10;
  double tenorData[n]   =   {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  </code></pre>
  
  <p>Returns the following error:</p>
  
  <pre><code>error: variable-sized object 'tenorData' may not be initialized
  </code></pre>
  
  <p>Whereas using <code>double tenorData[10]</code> works.</p>
  
  <p>Anyone know why?</p>