When Automatic Memory Deallocated?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6441218/can-a-local-variables-memory-be-accessed-outside-its-scope">Can a local variable&#39;s memory be accessed outside its scope?</a>  </p>
</blockquote>



<p>When Automatic Memory Deallocated ?</p>

<pre><code>void fun3(int a){
    a = 5;
}
</code></pre>

<p>Does 'a' deallocated when the function end ?</p>

<p>Yes !</p>

<p>So What is the reason for this output ?
<a href="http://ideone.com/2ZJ57" rel="nofollow">http://ideone.com/2ZJ57</a></p>
