What purpose does out parameter serves ?
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?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 2, 2020, 8:26 AM EDT
Nilanjan DuttaRank #1,870 · 797 reputationPosted Jun 7, 2020, 4:27 AM EDT