Login
Remember
Register
Ask a Question
What is the difference between “out” and “ref” parameters in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between “out” and “ref” parameters in C#?
c#-out
c#-ref
out-c#
ref-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
“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.
...