WHAT IS THE DIFFERENCE BETWEEN REF & OUT PARAMETERS?

Anchal Kesharwani

Total Post:15

Points:75
Posted by  Anchal Kesharwani
.NET  C# 
C#
 1027  View(s)
Ratings:
Rate this:
  1. Anchal Kesharwani

    Post:15

    Points:75
    What is the difference between ref & out parameters?

     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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!