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 |
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is the use of endl in c++ give an example?
What are the advantages of using const reference arguments in a function?
Is there anything you can do in C++ that you cannot do in C?
How do you generate a random number in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
Which sort does c++ use?
What is data structure in c++?
What is object file? How can you access object file?
Is set c++?