title: Reason for not calling the copy constructor?
body: <p>I know that copy constructor is called whenever the object was returned. In my below case copy construcotr has not called.</p>
  
  <p>I browsed in internet and i came to know that compiler has followed <code>return value optimization</code>  technique.I belive due that Copy construtor is not called. Is this true ?</p>
  
  <p>and how program control goes here?  </p>
  
  <p>// some code goes here </p>
  
  <pre><code>demo demo::display()
      {
          demo temp(10);
          temp.rate=45;
          return temp; //copy constructor is not called here
           }
  
   int main( )
      {
                demo obj1=obj1.display();
                return 0;
      }
  </code></pre>