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 are Operators and explain with an example?

1166


Is string an object in c++?

1154


How do you flush std cout?

1100


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1901


What are arrays c++?

1110


What are the benefits of c++?

1056


What is abstraction c++?

1012


What is the use of endl in c++?

1023


What is unary operator? List out the different operators involved in the unary operator.

1007


Which format specifier is used for printing a pointer value?

1064


What are the two types of polymorphism?

1143


How would you obtain segment and offset addresses from a far address of a memory location?

1080


What is time h in c++?

1139


Why do we use iterators?

1082


What is a c++ object?

1177