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
What is call back method?
Explain how do I get deterministic finalization in c#?
Why would you use a class property in c#?
What is dll file in c#?
What does the keyword “virtual†declare for a method or property?
What is the difference between returning iqueryable vs ienumerable?
Is c# a keyword?
Define an escape sequence, name few strings in escape sequence?
What is overloading with example?
What is an icollection in c#?
Do loops c#?
How do you create dlls in .NET
What is a template class?
Are arrays immutable c#?
What is windows form in c#?