Answer Posted / praveen
A copy constructor is used in the following cases.
* When compiler generates a temporary object.
* When an object is return type of pointer.
* This is a temporary object.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Is arr and &arr are same expression for an array?
Will this c++ program execute or not?
Can a Structure contain a Pointer to itself?
What is a tuple c++?
Define private, protected and public access control.
What's the best free c++ profiler for windows?
How do I run a program in notepad ++?
What is an overflow error?
What is the best ide for c++?
What is a linked list in c++?
What is a manipulative person?
What is a dangling pointer in c++?
Program to check whether a word is a sub-string or not of a string typed
What is the use of endl in c++ give an example?
What is lazy initialization in c++?