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
Can I learn c++ in a week?
Is std :: string immutable?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
How do I run a program in notepad ++?
What is the c++ programming language used for?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Differentiate between a constructor and a destructor in c++.
What is setw manipulator in c++?
What are inline functions? What is the syntax for defining an inline function?
What is an adaptor class or wrapper class in c++?
what does the following statement mean? int (*a)[4]
Is dev c++ free?
Explain the pure virtual functions?
Why the usage of pointers in C++ is not recommended ?
How can I learn c++ easily?