What is the difference between ref & out parameters?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / satya
ref keyword is used while passing the parameters by reference.
out keyword is used while passing the parameters by out
Is This Answer Correct ? | 0 Yes | 1 No |
Differentiate between static class and singleton instance?
What is generic delegate in c#?
What is asp net c# corner?
What?s an interface class?
What is a linked list c#?
Is comparator a functional interface?
Can int be null c#?
Is array value type in c#?
What are the string functions in c#?
What are the 3 elements of delegation?
Explain the difference between object type and dynamic type variables in c#?
What is an abstract class c#?