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...

When copy constructor can be used?

Answer Posted / jack

while compiler encounters following situation it uses the CC
1.when assigning one object to another object of same class
type

2.When an object is passed to the called function.....

3.when a function returns the object type and assigns it to
the another object..........

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

809


When do we run a shell in the unix system? How will you tell which shell you are running?

982


What is buffer and example?

1010


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1054


What are enumerations?

1106


Explain the benefits of proper inheritance.

1150


What are the benefits of operator overloading?

1216


Describe protected access specifiers?

1229


What is the basic structure of c++ program?

1098


When to use “const” reference arguments in a function?

1071


What is a c++ vector?

1049


What is the difference between a type-specific template friend class and a general template friend class?

981


Write bites in Turbo c++ Header ("Include") Files.

1265


Is swift faster than c++?

1023


What are the uses of c++ in the real world?

1036