Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a shallow copy and a deep copy?

Answers were Sorted based on User's Feedback



What is the difference between a shallow copy and a deep copy?..

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

What is the difference between a shallow copy and a deep copy?..

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

What is the difference between a shallow copy and a deep copy?..

Answer / 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

More C++ General Interview Questions

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?

0 Answers  


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

0 Answers  


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

0 Answers  


What is the use of endl in c++ give an example?

0 Answers  


What are the advantages of using const reference arguments in a function?

0 Answers  


Is there anything you can do in C++ that you cannot do in C?

1 Answers  


How do you generate a random number in c++?

0 Answers  


What does the nocreate and noreplace flag ensure when they are used for opening a file?

0 Answers  


Which sort does c++ use?

0 Answers  


What is data structure in c++?

0 Answers  


What is object file? How can you access object file?

0 Answers  


Is set c++?

0 Answers  


Categories