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
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How much do coding jobs pay?
Is string an object in c++?
What are guid? Why does com need guids?
Can a program run without main?
What is the iunknown interface?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Explain the difference between c++ and java.
What is the use of namespace std in C++?
Does c++ vector allocate memory?
Please explain class & object in c++?
Write bites in Turbo c++ Header ("Include") Files.
When does a 'this' pointer get created?
What does std mean in c++?
What is near, far and huge pointers? How many bytes are occupied by them?