Answer Posted / sagarson
Copy constructors are called in following cases:
a) when a function returns an object of that class by value
b) when the object of that class is passed by value as an
argument to a function
c) when you construct an object based on another object of
the same class
d) When compiler generates a temporary object
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
What is == in programming?
Do we have to use initialization list in spite of the assignment in constructors?
What does obj stand for?
Does c++ support multilevel and multiple inheritances?
Incase of a function declaration, what is extern means?
What is struct c++?
Are c and c++ different?
What is meant by iomanip in c++?
Is arr and &arr are same expression for an array?
Define what is constructor?
Define pre-condition and post-condition to a member function in c++?
What are the uses of static class data?
Is java based off c++?
What is the difference between structure and class?