Q:

What is the difference between “out” and “ref” parameters in C#?

0

What is the difference between “out” and “ref” parameters in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

“out” parameter can be passed to a method and it need not be initialized where as “ref” parameter has to be initialized before it is used.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
List out the differences between Array and ArrayLi... >>
<< What are different types of the parameter in c#?...