Examveda

In C++, what is the difference between a shallow copy and a deep copy?

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

B. Shallow copy is faster than deep copy

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

D. Shallow copy is slower than deep copy

Answer: Option C


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus