In situations where the argument should not be modified, passing by _______ is preferable to ensure the original data remains unaltered. 

  • value 
  • reference 
  • name 
  • pointer
Passing by value means the function receives a copy of the argument. As a result, any changes made to the parameter within the function don't affect the original data, ensuring it remains unaltered outside the function's scope.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *