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?

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


Please Help Members By Posting Answers For Below Questions

What is searching? Explain linear and binary search.

1036


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4168


What are references in c++? What is a local reference?

1104


What is the keyword auto for?

1084


Is nan a c++?

1203


What is a terminating character in c++?

1442


Explain the isa and hasa class relationships. How would you implement each?

1179


the first character in the variable name must be an a) special symbol b) number c) alphabet

1150


Can we specify variable field width in a scanf() format string? If possible how?

1349


What is the difference between a declaration and a definition?

1168


How will you call C functions from C ++ and vice-versa?

1188


What are mutator methods in c++?

1196


What is the function of I/O library in C++ ?

1268


What is the difference between *p++ and (*p)++ ?

1406


How do you declare A pointer to a function which receives nothing and returns nothing

1297