title: What happens to the variables inside?
body: <p>What happens to the variables inside that function ?</p>
  
  <pre><code>void function()
  {
     int a = 5;
     a += a; //a contain 10
  }
  
  int main()
  {
     function();
     return 0;
  }
  </code></pre>
  
  <p>so what happened here after the function (function()) execution is done does this variable (a) is it still found in memory (uses memory) with its last value which is (10) or its destroyed completely and no longer in memory ?</p>