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
Can a constructor return a value?
What is virtual destructor? What is its use?
What is a pdb file?
Why is polymorphism useful?
What size is allocated to the union variable?
What is c++ used for in games?
Write is a binary search tree? Write an algo and tell complexity?
What is the standard template library (stl)?
What is flush c++?
Can malloc be used in c++?
Can a program run without main?
Is atoi safe?
what is C++ objects?
What is scope resolution operator in c++ with example?
What is a volatile variable in c++?