Question: How can changes made to an argument inside a function be realized outside of the function? How can changes made to an argument inside a
How can changes made to an argument inside a function be realized outside of the function?
How can changes made to an argument inside a function be realized outside of the function?
You set the modification flag when declaring the function.
You cannot do this
Arguments dont need to be passed differently, changes inside a function are already realized outside.
Arguments can be passed by reference, which makes modifications inside can be seen outside.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
