Pointer and references in c++ as arguments
<p>What does this do exactly?</p>

<pre><code>void insertar (struct pila *&amp;p);
</code></pre>

<p>What are advantages of using <code>*&amp;</code> versus if the method were only declared like so:</p>

<pre><code>void insertar (struct pila *p);
</code></pre>

<p>or like so:</p>

<pre><code>void insertar (struct pila &amp;p);
</code></pre>

<p>I know that the <code>*</code> is pointer and <code>&amp;</code> is address, but both in the method signature?</p>

<p>what is the advantage? </p>

<p>And what are they used for?</p>

<p>What does it do?</p>
