Difference between the two

what is the difference between copy constructor and copy assignment operator (as far as their working is concerned )?

@Senjuti256 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.

thn how will they be differentiated by RAM?How can 2 objects can’t occupy the same memory location as separate entities?

@Senjuti256 it’s just a reference and there are actually no two objects!
eg:
int &x = y,
here x is not another int variable but just a reference(or another name) of y,
any change in y is reflected onto x.

what does int &× represent?it is neither a pointer nor an int variable?

@Senjuti256

it is like a variable