Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

what is the difference between ref and out parameters ?

difference parameters REF
0
Posted

what is the difference between ref and out parameters ?

0

ref –> inout out –> Out Argument passed as ref must be initialized before it is passed to the method, where as incase of Out it’s not neccssary.but after a call to the method as an out parameter the variable must be initialized .out parameter can be used when you want to return more than one value from a method.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123