What is 'Copy Constructor' and when it is called?
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 |
What do you mean by storage classes?
What is ofstream c++?
What is a constructor initializer list and when we use constructor initializer list?
What you know about structures in C++?
0 Answers Agilent, ZS Associates,
What is the best it certification?
What does std :: flush do?
What is helper in c++?
How many types of scopes are there in c++?
How would you use qsort() function to sort an array of structures?
What are the data types in c++?
How do you flush std cout?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?