defining variables in blocks of control structures
<p>If I define a variable inside the block of a control structure, does it exist only in the execution of that control structure's block and not in the whole execution of the enclosing function?</p>

<p>also how can I monitor the exact memory usage of my programs and its changes (i.e.: changes in memory usage by creating and destroying variables)?</p>

<p>added later:
in following code I know v scope is if block, but I want to know  whether v is created/destroyed in the memory at the start/end of the if block or at the start/end of the function func?</p>

<pre><code>void func ()
{
    if (true)
    {
        int v;//automatic storage class
        v = 1;
    }
}
</code></pre>
