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 |
Explain Memory Allocation in C/C++ ?
Write syntax to define friend functions in C++.
What are the uses of typedef in a program?
How to tokenize a string in c++?
What is the use of string in c++?
Is it possible to use a new for the reallocation of pointers ?
Explain the scope resolution operator?
Can char be a number c++?
What is the difference between C and CPP?
How does the copy constructor differ from the assignment operator (=)?
How is c++ different from java?
Why is it difficult to store linked list in an array?