Give two advantages of reference pattern in a computer program

      

Give two advantages of reference pattern in a computer program

  

Answers


Davis
The address of a reference parameter is automatically passed to the function.You need not obtain the address manually.Passing by reference is often faster than passing by value.No copy of the argument is generated.Therefore ,there is no chance of a side effect occurring because the copy’s destructor is called.
Githiari answered the question on November 17, 2017 at 05:39


Next: What are the ways that a class might indicate an allocation failure in a computer program?
Previous: Explain why using a default argument is related to function overloading

View More Computer Studies Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions