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 'Copy Constructor' and when it is called?

Answer Posted / hrpynux@gmail.com

A copy constructor is called when an object is passed by value. Copy constructor itself is a function. So if we pass an argument by value in a copy constructor, a call to copy constructor would be made to call copy constructor which becomes a non-terminating chain of calls.

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 decltype c++?

994


Why do we use setw in c++?

1111


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1416


What is a tree in c++?

970


How many ways can a variable be initialized into in C++?

1016


How a pointer differs from a reference?

1340


Why main function is special in c++?

1117


How the virtual functions maintain the call up?

1167


What are friend functions in C++?

1066


Are vectors passed by reference c++?

980


How do you sort a sort function in c++ to sort in descending order?

990


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1077


Is c++ a low level language?

965


Differentiate between late binding and early binding. What are the advantages of early binding?

1030


Why do we need c++?

1051