What is the difference between ref & out parameters?
Answer Posted / padam
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.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Can a sealed class be used as a base class?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
Is c# or c++ better for games?
What is the difference between new and override in c#?
What is the difference between field and variable in c#?
Can you create partial delegates and enumerations?
What happens if the inherited interfaces have conflicting method names?
Differentiate between object pooling and connection pooling in c#?
What is difference between ilist and list in c#?
Can constructor be protected?
Where is the main method in c#?
How do generics work in c#?
What exactly happens when we debug and build the program?
What is difference between il and dll ?
How do I declare a pure virtual function in c#?