a) Changes to parameter values within the function also affect the original arguments
b) There is need to copy parameter values (i.e. less memory used)
c) There is no need to call constructors for parameters (i.e. faster)
d) All of the mentioned
What are the advantages of passing arguments by reference?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What are the advantages of passing arguments by reference?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!