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 do nonglobal variables default to a) auto b) register c) static

1098


What is the use of data hiding?

971


Can a list of string be stored within a two dimensional array?

959


What is size of string in c++?

928


To which numbering system can the binary number 1101100100111100 be easily converted to?

1000


What is the type of 'this' pointer? When does it get created?

912


Explain virtual destructor?

1121


Explain virtual class and friend class.

994


What is c++ and its uses?

1148


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

949


What is the use of namespace std in C++?

1017


What is a volatile variable in c++?

1360


Does a derived class inherit or doesn't inherit?

1037


What is a flag in c++?

1010


When does a 'this' pointer get created?

1033