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 |
Do you know about latest advancements in C++ ?
0 Answers Agilent, ZS Associates,
What problems might the following macro bring to the application?
Describe Trees using C++ with an example.
What is the difference between passing by reference and passing a reference?
What is a lambda function c++?
Specify different types of decision control statements?
Write a program which employs Recursion
Name four predefined macros.
What is the use of bit fields in structure declaration?
What is near, far and huge pointers? How many bytes are occupied by them?
How long it will take to learn c++?
Why c++ is created?