Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

What is the differences between copy constructor and assignment operator overloading in c++

+1 vote
asked Mar 17, 2018 by Bhautik Pethani (170 points)

3 Answers

0 votes
answered Mar 17, 2018 by Unik Zadafiya (150 points)
copy constructor allocate different memory to both operand

and assignment operator overloading allocate same memory to both operand
0 votes
answered Mar 17, 2018 by Saurabh Suman (140 points)
copy constructor allocate different memory to both operad and assignment operator overloading allocate same memory to voth operand
0 votes
answered Mar 17, 2018 by smit zadafiya (220 points)

copy constructor is called when the new object created  from an existing object as copy of the existing object 

and 

assignment operator is called when an already initialized object is assigned a new value  from another existing object

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...