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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are static variables?

1083


What is atoi?

923


Can constructor be private in c++?

980


What are vectors used for in c++?

1012


When to use “const” reference arguments in a function?

1010


What are member functions used in c++?

1073


Is c++ built on c?

970


What is lvalue?

1131


What is the need of a destructor? Explain with the help of an example.

957


What is rvalue?

1085


How do you clear a set in c++?

1018


Describe the advantage of an external iterator.

981


Define the operators that can be used with a pointer.

994


How are pointers type-cast?

1061


What does new do in c++?

1024