"goto" behavior in C : how symbols are handled?
<p>I was wondering, in the following code :</p>

<pre><code>{
    int i = 42;
    goto end;
}
end:
</code></pre>

<p>What is the status of the symbol <strong>i</strong> when we reach <strong>end:</strong> (what would we see in a debugger) ? Does it still exist, even if we're out of the scope ? Is there a standard behavior or is it compiler-dependent ?</p>

<p>For the sake of the example, let's assume that the code is compiled using gcc with debug symbols.</p>

<p>Subsidiarily, is the behavior the same in C++ ?</p>

<p>Thank you.</p>