int var = 1; void main() { int i = i; }
<p>This is an interview question that I had:</p>

<pre><code>int var = 1;
void main()
{
    int i = i;
}
</code></pre>

<p>What is the value of <code>i</code> after assignment?   It is really compiler dependent or is it just undefined?  My g++ on cygwin seems to give me 0 all the time.</p>

<p>Thanks</p>
