When passing an argument by reference the module can modify the argument in the calling part of the program?

1 answer

Answer

1180192

2026-04-16 02:30

+ Follow

Yes, when passing an argument by reference, changes to the argument made within the module will directly affect the original variable in the calling part of the program. This is because the reference to the original variable's memory address is passed to the module, allowing it to modify the variable directly.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.