title: Error in the subscript of the array
body: <p>This is giving me an error that expression <code>a</code> must have a constant value. I cannot understand what is wrong with this method. <code>n</code> is an integer and I am giving it the array size. Can somebody help me to understand this problem?</p>
  
  <pre><code>int fib(int n)
  {
  const int a = n;
  int f[a];
  ...
  }
  </code></pre>