Rikam Palkar

Rikam Palkar

  • 119
  • 18.6k
  • 1.5m

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)