Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeesh MenothRank #118 · 18.4K reputationPosted Nov 2, 2016, 9:37 PM EDT
Bulbul Ahmed153 reputationPosted Nov 1, 2016, 4:01 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 1, 2016, 4:39 AM EDT
Thennarasu NRank #1,120 · 1.6K reputationPosted Nov 1, 2016, 11:58 PM EDT
The
refmodifier means that:The
outmodifier means that:Kanniyappan Krish111 reputationPosted Nov 2, 2016, 9:26 PM EDT
Chinmaya DashRank #1,596 · 990 reputationPosted Nov 1, 2016, 4:06 AM EDT
Bulbul Ahmed153 reputationPosted Nov 1, 2016, 4:13 AM EDT
Ananth GRank #1,176 · 1.5K reputationPosted Nov 1, 2016, 11:17 PM EDT
The out keyword passes arguments by reference. This is very similar to the ref keyword.
Example Code
Sandip G PatilRank #1,083 · 1.8K reputationPosted Jan 27, 2017, 6:55 AM EST