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 / sachin magdum

1. "assigning" - don't use this word, it should be
initializing an object using another object of same type
2. When the object is passed to function - "by value"
3. when a function returns the object type - "by value"
here doesn't matter if you are assigning that returned
value to to another object or not.

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ manipulators?

1080


What is a manipulative person?

1021


What is a wchar_t in c++?

1145


what is C++ objects?

1196


What are the advantages of early binding?

1075


How would you use qsort() function to sort an array of structures?

1123


What new()is different from malloc()?

1111


How to give an alternate name to a namespace?

1088


In what situations do you have to use initialization list rather than assignment in constructors?

1065


How is objective c different from c++?

1255


Are vectors faster than arrays?

1005


What does I ++ mean in c++?

1107


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1537


What are the basic data types used in c++?

1040


What is a hashmap c++?

1123