C++ interview question including operators like conversion operator and assignment operator

Operators: What’s the difference between assignment operator and copy constructor copy constructor can do a deep copy whereas assignment is merely a shallow copy ie references. wrong… When not provided, compiler will provide both; which does bitwise copy A copy constructor initialises a new object from an already existing object. An assignment operator is used …

C++ interview question including operators like conversion operator and assignment operator Read More ยป