What are the two keywords used to pass a variable by
reference in c#?
Answer Posted / sreekanth m
Two keywords are "ref" and "out".
the difference between them are: In the case of "ref", the
passed argument should be initialized first whereas
for "out", its not mandatory.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Why do we need generics in c#?
What is class in oops with example in c#?
What is the reason behind the invention of c#?
Can datetime be null c#?
How many types of delegates are there in c#?
Define a class and an object?
What is Implementation inheritance and interface inheritance?
What is cli in c#?
What is the xml document structure?
Explain the concepts of cts and cls(common language specification).
How does dll hell solve in .net?
What is gac? What are the steps to create an assembly and add it to the gac?
Why do we need dependency injection in c#?
Which are access modifiers available in c#?
What is an escape sequence?