What is the difference between shallow copy and deep copy?



What is the difference between shallow copy and deep copy?..

Answer / hrpynux@gmail.com

A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Enter n no. of element and delete value from desire position

1 Answers  


Why was c++ made?

0 Answers  


What are destructors?

0 Answers  


Why do we need constructors in c++?

0 Answers  


Does c++ support exception handling?

0 Answers  






What is c++ vb?

0 Answers  


What is c++ map?

0 Answers  


How do I write a c++ program?

0 Answers  


Is c++ a difficult language?

0 Answers  


Describe private, protected and public?

0 Answers  


Which format specifier is used for printing a pointer value?

0 Answers  


How can you link a c++ program to c functions?

0 Answers  


Categories