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 do nonglobal variables default to a) auto b) register c) static
What is the use of data hiding?
Can a list of string be stored within a two dimensional array?
What is size of string in c++?
To which numbering system can the binary number 1101100100111100 be easily converted to?
What is the type of 'this' pointer? When does it get created?
Explain virtual destructor?
Explain virtual class and friend class.
What is c++ and its uses?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What is the use of namespace std in C++?
What is a volatile variable in c++?
Does a derived class inherit or doesn't inherit?
What is a flag in c++?
When does a 'this' pointer get created?