Rikam Palkar

Rikam Palkar

  • 33
  • 36.5k
  • 4.6m

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)