What is the difference between a shallow copy and a deep copy?
Answer Posted / nashiinformaticssolutions
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is difference between c++ 11 and c++ 14?
What is the use of 'this' pointer?
What does namespace mean in c++?
Why do we need constructors in c++?
Is c++ a difficult language?
Explain storage qualifiers in c++.
What do you mean by volatile and mutable keywords used in c++?
What is c++ mutable?
What apps are written in c++?
Explain the isa and hasa class relationships.
Is it possible to have a recursive inline function in c++?
What is helper in c++?
Which operations are permitted on pointers?
What is the use of object in c++?