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 |
Why do we write system in c#?
How many constructor can a class have?
Can we inherit partial class in c#?
Can we inherit class that contains only one private constructor?
What is writeline?
What is type safe in c#?
What are the types of comments in c#?
What are expressions c#?
What is a constructor in c#?
What's the difference between system.string and system.text.stringbuilder classes?
What do u mean by thread safe?
Is std :: string null terminated?