dynamic array allocation c++
<p>i know that if i new some array i must delete it:</p>

<pre><code>    int *i=new i[10];

    delete[] i;
</code></pre>

<p>what about static array like:</p>

<pre><code>    int i[100];
</code></pre>

<p>OR </p>

<pre><code>    int i[]={1,2,3,4};
</code></pre>

<p>should it be deleted?</p>

<p>asume the code bellow:</p>

<pre><code>    bool fu()
    {
      for(int i=0;i&lt;100;i++
      {
       int j[]={1,2,3,4};
      }
      return 0;
    }
</code></pre>

<p>is j[] goes away from RAM (after return 0;) or it remains there and make the RAM full after lots of iterations?</p>

<p>because i want to program on micro im a a little worry.
thanx</p>
