Rikam Palkar

Rikam Palkar

  • 101
  • 21.6k
  • 2m

What purpose does out parameter serves ?

May 2 2020 11:36 AM
If I have to initialise parameter inside method and my method has to update parameter's value. I would just change return type of method to return the updated value. Why would I need out parameter? What difference does it makes?

Answers (2)