Difference between "MyClass& func1(void)" and "MyClass* func2(void)"
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3953637/what-is-the-proper-way-to-return-an-object-from-a-c-function">What is the proper way to return an object from a C++ function ?</a>  </p>
</blockquote>



<p>Hi there,</p>

<p>i would like to know whats the difference between the following two functions with respect to the return types?</p>

<ol>
<li>MyClass&amp; func1(void)</li>
<li>MyClass* func2(void)</li>
</ol>

<p>I always thought this would be the same?</p>

<p>Heinrich</p>
