top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between ref & out parameters?

+4 votes
303 views
What is the difference between ref & out parameters?
posted Nov 28, 2014 by Manikandan J

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

An argument passed as ref must be initialized before passing to the method whereas out parameter needs not to be initialized before passing to a method.

answer Nov 28, 2014 by Jdk
...