Q. What is shallow copy? (Solved)
1. a shallow copy creates a copy of the dynamically allocated objects too.
2. a shallow copy just copies the values of the data as they are.
3. a shallow copy creates a copy of the statically allocated objects too
4. both b and c above
- b. a shallow copy just copies the values of the data as they are.