title: Return value in C++
body: <p>I am confused with the following output in C++</p>
  
  <pre><code>int add()
  {
      int c = 2+3;
  }
  
  int main()
  {
      int x = add();
      cout &lt;&lt; x;
      return 0;
  }
  </code></pre>
  
  <p>This prints 5.even if we do not write return statement.
  How this is managed in C++.
  Please help.</p>