Loading practice questions
Object being passed to a copy constructor ___________
Correct Answer: A — Must be passed by reference
Explanation:
This is mandatory to pass the object by reference. Otherwise, the object will try to create another object to copy its values, in turn a constructor will be called, and this will keep on calling itself. This will cause the compiler to give out of memory error.