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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now