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 |
Do vectors start at 0?
Should the this pointer can be used in the constructor?
What are the advantages of c++ over c?
What is const in c++?
List out function which we can call without using object
Refer to a name of class or function that is defined within a namespace?
Is c++ the hardest programming language?
Implement strcmp
write a program that a 5 digit number and calculates 2 power that number and prints it.
2 Answers Vimukti Technologies,
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Explain all the C++ concepts using examples.
What is compilation?