c++ variable declaration
<p>Im wondering if this code:</p>

<pre><code>int main(){
    int p;
    for(int i = 0; i &lt; 10; i++){
      p = ...;
    }
    return 0
}
</code></pre>

<p>is exactly the same as that one</p>

<pre><code>int main(){
    for(int i = 0; i &lt; 10; i++){
      int p = ...;
    }
    return 0
}
</code></pre>

<p>in term of efficiency ?
I mean, the p variable will be recreated 10 times in the second example ? </p>
