I don't understand what's return for
<p>I've recently started to learn C++, and I was doing well so far, until I came
to function declaration and calling.
What I don't understand exactly is what <code>return</code> is for and why every function requires it.</p>

<p>Also, why do you need a function type? For example</p>

<pre><code>int xamplefunc(){}
</code></pre>

<p>What is the int type for?</p>

<p>EDIT: Well,i'm not sure if i get it. What exactly does return do? What really happens behind the curtains? Does the calling function store the return value as a variable, or what?</p>
