Question:

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

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.


Keywords:

© 2017 QuizBucket.org