What is the significance of using pointers in function arguments?

  • It allows passing arguments by reference
  • It enforces strong typing
  • It reduces code readability
  • It simplifies function declarations
Using pointers in function arguments allows passing arguments by reference, meaning the function can modify the original data, not just a copy. This is valuable when you want a function to modify variables from the caller's scope.
Add your answer
Loading...

Leave a comment

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