Answer Posted / richa
A copy constructor is used in 3 cases.They are listed below:
a)When an object is created from another object of the same
type.
b)When an object is passed by value as a parameter to a
function.
c)When an object is returned from a pointer.
Is This Answer Correct ? | 38 Yes | 9 No |
Post New Answer View All Answers
What is the benefit of c++?
what you know about c++?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Is c# written in c++?
Why is it necessary to use a reference in the argument to the copy constructor?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Do you know what is overriding?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is main function in c++ with example?
List the merits and demerits of declaring a nested class in C++?
Can a program run without main?
How is modularity introduced in C++?