Question: Are you required to return an object if it was passed by reference to a function, and why or why not?
- Yes, the caller function needs to reflect the changes.
- No, you should use a global variable instead.
- No, changes will be automatically reflected in the calling function.
- Yes, the object must be the same in the caller function.
Answer: The correct answer of the above question is Option C:No, changes will be automatically reflected in the calling function.