what compiler does internally for initializing a variable and assigning a variable while constructing object?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/926752/why-should-i-prefer-to-use-member-initialization-list">Why should I prefer to use member initialization list?</a>  </p>
</blockquote>



<p>Class A has a member variable i.  i can be initialized  or assigned during object creation.</p>

<p>A) Initialise</p>

<pre><code>   class A {
         int i;
    public:
        A(int _i) : i(_i){}
    }
</code></pre>

<p>B) assign</p>

<pre><code>class A {
         int i;
    public:
        A(int _i) : { i = _i}
    }
</code></pre>

<p>My question is what is the basic difference between these 2 approach?</p>
