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

Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2574


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

1230


What is the difference between function overloading and operator overloading?

1115


How do I run a program in notepad ++?

1112


Difference between delete and free.

1079


Why do we use using namespace std in c++?

1084


Explain one method to process an entire string as one unit?

1591


Refer to a name of class or function that is defined within a namespace?

1119


Explain the static storage classes in c++.

1271


What do you mean by late binding?

1129


What are guid? Why does com need guids?

1055


How does work in c++?

1080


What is the c++ programming language used for?

1049


Is c++ a float?

1067


What would happen on forgetting [], while deallocating an array through new?

1091