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
How do you add an element to a set in c++?
What is the use of "new" operator?
Define the process of error-handling in case of constructor failure?
What are references in c++?
What is the default access level?
What is a down cast?
How do you generate a random number in c++?
What do you mean by global variables?
What is class definition in c++ ?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is pure virtual function? Or what is abstract class?
What is a constructor in c++ with example?
What is object in c++ wikipedia?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Will c++ be replaced?