A copy constructor must receive its argument by reference because:

a. Otherwise the constructor will only make a copy of a pointer to an object.
b. Otherwise infinite recursion occurs.
c. The copy of the argument passed by value has function scope.
d. The pointer needs to know the address of the original data, not a temporary copy of it.

b. Otherwise infinite recursion occurs.

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true in regard to tabs on a form?

A) The tab order is based on the initial location of the control on the form. B) When you add a new field to the form, unless it is placed after all the other controls, you will have to adjust the tab order. C) Moving a control to a new spot on the form does not change the tab order of the control. D) The tab order is changed in the Tab Order dialog box that is accessed from Design view.

Computer Science & Information Technology

What is the term used for binary search’s run time?

a) Linear run time. b) Quadratic run time. c) Constant run time. d) Logarithmic run time.

Computer Science & Information Technology