Examveda
Examveda

What is the difference between a shallow copy and a deep copy in C++?

A. Shallow copy is performed using copy constructors, while deep copy is performed using assignment operators

B. Shallow copy copies only the memory addresses of the objects, while deep copy copies the actual content

C. Shallow copy is faster than deep copy

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus