title: How size of the array is changing in the list?
body: <p>After adding a new index, the size of the array is changed from <code>n</code> to <code>n+1</code>. I have declared my array with size of <code>n</code>. When I added a new index it is automatically changing its size from <code>n</code> to <code>n+1</code>? </p>
  
  <pre><code>main()
  {
      int n=5;
      int a[n];
  
      // input in array
      for (int i=0;i&lt;n;i++)
      {
          cin&gt;&gt;a[i];
      }
      // add number at start
      n=n+1;
      int k=n-1;
      for (int i=k;i&gt;0;i--)
      {
          a[i]=a[i-1];
      }
      a[0]=8;
  </code></pre>