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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c++ so fast?

1032


Tell me difference between constant pointer and pointer to a constant.

1192


Explain all the C++ concepts using examples.

1204


What do you mean by function pointer?

1104


How does a C++ structure differ from a C++ class?

1120


What is c++ manipulator?

983


What is meaning of in c++?

1211


Can I learn c++ without knowing c?

1060


What do manipulators do?

1009


What is scope operator in c++?

1079


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1221


Do inline functions improve performance?

1067


Why is it called c++?

1032


Can we define a constructor as virtual in c++?

1125


What are the extraction and insertion operators in c++? Explain with examples.

1176