What is 'Copy Constructor' and when it is called?
A copy constructor is called when an object is passed by value. Copy constructor itself is a function. So if we pass an argument by value in a copy constructor, a call to copy constructor would be made to call copy constructor which becomes a non-terminating chain of calls.
Is This Answer Correct ? | 0 Yes | 0 No |
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
Eplain extern keyword?
What is ios in c++?
What are the uses of pointers?
Can we declare destructor as static? Explain?
Define basic type of variable used for a different condition in C++?
What are structs in c++?
Are vectors faster than arrays?
What is isdigit c++?
Is vector a class in c++?
What return value must conversion operators have in their declaration?
What is the difference between C and CPP?