Assigning value at same position in an array
<p>I have code:</p>

<pre><code>T x,y;
T* t = new T[10];
t[0] = x;
t[0] = y;
</code></pre>

<p>What happens:
<code>new T[10]</code> makes array invoking default constructor.</p>

<p><code>t[0]</code> is dereferenced pointer? 
So if I assign value <code>x</code>, <code>x</code> is copied (<code>T</code> copy constructor is invoked);</p>

<p>next if i assign <code>y</code> value to same position next copy constructor is invoked or assignment operator? Is old value properly destroyed?</p>
