can anyone tell me why the result is 7 7 7 but no 7 7 10?
<pre><code>#include &lt;iostream&gt;
using namespace std;
int *wedgic(int foo)
{
    cout&lt;&lt;foo;
    return (&amp;foo);
}

int main()
{
    int fo=7;
    int *blah;
    blah=wedgic(fo);
    (*blah)+=3;
    wedgic(fo);
}
</code></pre>

<p>can anyone tell me why the result is 7 7 7
but no 7 7 10??</p>

<p>please help, I guess I dont understand what does Blah=wedgic(fo); do...</p>

<p>thanks</p>
