title: C++ return value without return statement
body: <p>When I ran this program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int sqr(int&amp;);
  
  int main()
  {
      int a=5;
      std::cout&lt;&lt;"Square of (5) is: "&lt;&lt; sqr(a) &lt;&lt;std::endl;
      std::cout&lt;&lt;"After pass, (a) is: "&lt;&lt; a &lt;&lt;std::endl;
      return 0;
  }
  
  int sqr(int &amp;x)
  {
      x= x*x;
  }
  </code></pre>
  
  <p>I got the following output:</p>
  
  <pre><code>Square of (5) is: 2280716
  After pass, (a) is: 25
  </code></pre>
  
  <p>What is <code>2280716</code>? And, how can I get a value returned to <code>sqr(a)</code> while there is no <code>return</code> statement in the function <code>int sqr(int &amp;x)</code>?</p>
  
  <p>Thanks.</p>