Which of these two snippets uses more memory?
<pre><code>string Name = "";

for(int i; i &lt; 10; i++)
{
    Name = NameList[i] + "what?";
    Console.WriteLine(Name);
}


//Or this one:

for(int i; i &lt; 10; i++)
{
    string Name = NameList[i] + "what?";
    Console.WriteLine(Name);
}
</code></pre>

<p>Which one would use less memory? Someone asked this in the comments of this question and I wasn't sure myself. Thanks!</p>

<p><a href="http://stackoverflow.com/questions/3979493/scope-of-variables-in-c">http://stackoverflow.com/questions/3979493/scope-of-variables-in-c</a></p>
