C++ pointers and constructors
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3040868/question-about-copy-constructor">question about copy constructor</a>  </p>
</blockquote>



<p>if I have this snippet of the code </p>

<pre><code>A a1(i);
A a2 = a1;
A *pa1 = new A(a2);
</code></pre>

<p>can somebody please explain what exactly the last line does, it makes copy of the a2 and pointer for this new object is pa1 or it just creates pointer for a2, thanks in advance</p>
