Vidyalelo
C++ Programming · Q16

Constructors and Destructors in C++

Programming · C++ Programming · question 16

Q16

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
Answer
D.
Shallow copy is slower than deep copy

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board