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

What is the latest c++ version?

1052


What are static type checking?

1010


What is microsoft c++ redistributable?

1028


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1088


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

978


What are keywords in c++?

1046


Why the usage of pointers in C++ is not recommended ?

1345


List the types of polymorphism in c++?

1054


Write a recursive program to calculate factorial in c++.

1025


What is c++ & why it is used?

1029


How should runtime errors be handled in c++?

1084


Difference between pass by value and pass by reference?

1085


What is the default width for ouputting a long integer using the insertion operator?

1174


How to declare an array of pointers to integer?

1070


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2425