C#.net We Can Pass Arguments To The Function’s To get Dynamic Result’s In C# We Can Pass The Arguments In 3 Way’s
1.Call-by Value .
2.Call-by Reference
3.Call-by Out.
1.Call-By Value-In Call by value if the formal arguments Are Modify And it Wants’ reflects to Actual Argument’s. In call By value The compiler Send’s Only The value of the Variable
Note-The Default Function Calling Method is Call By Value.
2.Call-by Reference-In Call by Reference if the Formal Arguments Are modify Immediately Reflective Actual arguments Also .Because Call by Reference Send’s values Along With Address. Call by Reference We need to Use (Ref) keyword in the Front of Formal And Actual arguments.
3. Call-by Out—Is similar to Call by Reference But To use call By Out No need To initialize Variables. To use Call-by Out We need to To Use (Out) key Word in front Of Formal Argument’s Actual Argument’s
Comments
Post a Comment