Why exactly do we need copy constructors?
I am studying C++ and I am not able to understand the need for copy constructors , as without using a copy constructor also, i was getting correct output. I went through few examples, but it seemed to me like, it is just a good practice to have copy constructors, like to initialize variables. Could someone please help me understand the concept of copy constructors. Any help will be appreciated very much. Thank you.