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 |
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
How can you differentiate between inheritance and implementation in c++?
What is a tree in c++?
What is setiosflags c++?
What are the defining traits of an object-oriented language?
How do you allocate and deallocate memory in C++?
What is cloning?
What are the advantages of using pointers in a program?
Write a program which employs Recursion
How static variables and local variablesare similar and dissimilar?
What are the various compound assignment operators in c++?
Why namespace is used in c++?