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 is the difference between an external iterator and an internal iterator?
How to get the current position of the file pointer?
Can a Structure contain a Pointer to itself?
what is the basic concept of c++(object oriented programing)
How can you link a c++ program to c functions?
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
What is endl?
What is endl c++?
Explain what data encapsulation is in c++?
How the virtual functions maintain the call up?
What is binary search in c++?
How to allocate memory dynamically for a reference?