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 will i and j equal after the code below is executed? Explain your answer.
Is it possible to have a recursive inline function in c++?
Is c++ slower than c?
Is c++ used anymore?
Write the program form Armstrong no in c++?
why and when we can declar member fuction as a private in the class?
What does new do in c++?
What does int * mean in c++?
Tell me can a pure virtual function have an implementation?
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Is nan a c++?