Question: what is the difference between assignment operator and copy constructor in c++?
Answer: The Copy constructor and the assignment operators are used to initializing one object to another object. The main difference between them is that the copy constructor creates a separate memory block for the new object. But the assignment operator does not make new memory space.