Error while printing function return value?
<p>My function is declared as</p>

<pre><code>unsigned int factorial(unsigned int &amp;inputFactorial);
</code></pre>

<p>I am calling it like this</p>

<pre><code>#1 error: invalid initialization of reference of type 'unsigned int&amp;' from expression of type 'int'
#2 error: in passing argument 1 of 'unsigned int factorial(unsigned int&amp;)'
</code></pre>

<p>what am I doing wrong here?</p>
