Receiving object in the reference variable
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1898524/difference-between-pointer-to-a-reference-and-reference-to-a-pointer">Difference between pointer to a reference and reference to a pointer</a>  </p>
</blockquote>



<p>Hi,
   I could not understand <code>get(Event*&amp; pEvent)</code>... Is it passing the address of the object pEvent to the reference of <code>pEvent</code>..<code>(Event*&amp; pEvent)</code>...The reference will exist as a local scope within the function isnt it....</p>

<pre><code>void classA::func()
{
 Event* pEvent = NULL;
  if ( get((pEvent) )
  {
   ......//definition;
  }
}
bool ClassA::get(Event*&amp; pEvent)
{
 ...//definition;
}
</code></pre>
