What is 'Copy Constructor' and when it is called?



What is 'Copy Constructor' and when it is called?..

Answer / 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

More C++ General Interview Questions

What is an object in c++?

0 Answers  


How does atoi function work?

0 Answers  


Show the declaration for a static function pointer.

0 Answers  


Can we sort map in c++?

0 Answers  


What is name mangling?

3 Answers  






What is else syntax in c++?

0 Answers  


What are punctuators in c++?

0 Answers  


i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 Answers  


How can you link a c++ program to c functions?

0 Answers  


What is enum class in c++?

0 Answers  


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

0 Answers  


What is function overloading in C++?

0 Answers  


Categories