155k views
2 votes
suppose a function has a parameter named x, and the body of the function changes the value of x. if we do not want the change affect to the original x, what type of parameter x should we use?

1 Answer

3 votes

Answer: It should be a value parameter.

User Bakua
by
4.1k points