Copy constructor
As we know below signature of copy constructor for class T: T (const T& t) We are passing the object as reference or else we would go into infinite recursion. This we can observe by pasing object as value rather than as reference in copy constructor definition & calling copy constructor from main. Another thing is const.We generally provide const reference to take care of lvalue and rvalue being passed as argument.Simply putting object as ref (without const) would only allow lvalue to be passed as argument for copy constructor and rvalue as argument is not allowed. I hope this info is correct. Plz correct if I am wrong. Now, my query is as below: Refer below code and let me know how to call copy constructor with r value to get compiler error as I have not provided const into copy constructor definition. https://code.sololearn.com/cB9jNDP0FN3x/?ref=app I know const means we should not change existing object also. But I hope that purpose is not the reason for const.