Q: What is deep and shallow copy?
Sigiloso
Shallow copy is by copy constructor and assignment operator,here only value of pointer is copied not exact memory. deep copy is by copy constructor and overloaded assignment operator,here both memory and value of a pointer is copied..