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

Is c++ platform dependent?

0 Answers  


Does improper inheritance have a potential to wreck a project?

0 Answers  


Which bit wise operator is suitable for turning off a particular bit in a number?

0 Answers  


What is abstraction c++?

0 Answers  


What is virtual table?

0 Answers  






write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

0 Answers   Care,


Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";

7 Answers   CTS,


Who was the creator of c++?

0 Answers  


What is extern c++?

0 Answers  


What do you mean by Stack unwinding?

1 Answers  


Explain the difference between c++ and java.

0 Answers  


What is a binary file? List the merits and demerits of the binary file usagein C++.

0 Answers  


Categories