143k views
5 votes
T F Changes to a function parameter always affect the original argument as well.

1 Answer

4 votes

Answer:

False

Step-by-step explanation:

"When the function addition is called, [...] any modification will not have any effect [...]in the values outside it, because variables x and y were not themselves passed to the function, but only copies of their values at the moment the function was called."

Reference: Cplusplus.com. “Functions (II).” Cplusplus.com, 2019,

User Rikijs
by
5.8k points