What is the difference between a shallow copy and a deep copy?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / glibwaresoftsolutions
• 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 |
• 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 |
Is c the same as c++?
What are containers in c++?
Write some differences between an external iterator and an internal iterator?
Can we specify variable field width in a scanf() format string? If possible how?
What are static and dynamic type checking?
Differentiate between an inspector and a mutator ?
What operators can you overload in c++?
What are the steps in the development cycle?
Can c++ do everything c can?
What are the advantages of c++?
What is a dynamic binding in c++?
Can we sort map in c++?