title: Where can i put the default value for parameters?
body: <p>When defining a function,can i specify a default value in the first parameter?     When i put the default value in the first parameter, I found Error. is there a  way to put the default value in the first parameter.  </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int sum ( int a =42, int b)
  {
      int result a +b ;
      return ( result ) ;
  }
  int main()
  {
      int x = 25 ;
      int y = 23 ;
      int result = sum (x, y ) ;
      cout &lt;&lt; result &lt;&lt; endl;
  }
  </code></pre>