What is the difference between a shallow copy and a deep copy?
Answer Posted / hr@tgksolutions.com
• 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
What is searching? Explain linear and binary search.
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What are references in c++? What is a local reference?
What is the keyword auto for?
Is nan a c++?
What is a terminating character in c++?
Explain the isa and hasa class relationships. How would you implement each?
the first character in the variable name must be an a) special symbol b) number c) alphabet
Can we specify variable field width in a scanf() format string? If possible how?
What is the difference between a declaration and a definition?
How will you call C functions from C ++ and vice-versa?
What are mutator methods in c++?
What is the function of I/O library in C++ ?
What is the difference between *p++ and (*p)++ ?
How do you declare A pointer to a function which receives nothing and returns nothing