title: Why Constructor is called before the copy-constructor is called?
body: <p>I am learning class constructor.</p>
  
  <p>As you can see in this website : <a href="http://www.tutorialspoint.com/cplusplus/cpp_copy_constructor.htm" rel="nofollow">http://www.tutorialspoint.com/cplusplus/cpp_copy_constructor.htm</a></p>
  
  <p>On the first example code in the site,</p>
  
  <pre><code>Normal constructor allocating ptr
  Copy constructor allocating ptr.
  Length of line : 10
  Freeing memory!
  Freeing memory!
  </code></pre>
  
  <p>I have difficulties in understanding why the copy constructor is called after the normal constructor.</p>
  
  <p>I think there is no reason the copy constructor is called.
  Are the following two code lines different?</p>
  
  <pre><code>Line line(10);  or
  Line line = Line(10);
  </code></pre>
  
  <p>or the function 'display' calls copy constructor?</p>