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
What is lvalue?
What is a namespace in c++?
What are the rules for naming an identifier?
What is a character in c++?
Can I learn c++ without knowing c?
Write about c++ storage classes?
What are arithmetic operators?
What is a pointer how and when is it used?
Explain polymorphism?
Where and why do I have to put the "template" and "typename" keywords?
Write some differences between an external iterator and an internal iterator?
What is the basic of c++?
Which software is used to run c++ program?
Differentiate between a pointer and a reference with respect to c++.
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)