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
what are Operators and explain with an example?
Is string an object in c++?
How do you flush std cout?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
What are arrays c++?
What are the benefits of c++?
What is abstraction c++?
What is the use of endl in c++?
What is unary operator? List out the different operators involved in the unary operator.
Which format specifier is used for printing a pointer value?
What are the two types of polymorphism?
How would you obtain segment and offset addresses from a far address of a memory location?
What is time h in c++?
Why do we use iterators?
What is a c++ object?