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 use void in c#?
How many types of inheritance are there in c#?
What is the difference between hashtable and dictionary in c#?
What is interface used in c#?
How many types of delegates are there in c#?
What are the steps to create a webservice and consume it?
Why do we use abstract class in c#?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
What are accessors?
What is sorting in c#?
Do void methods have parameters?
How does the clr work?
Name some string escape sequences in c#.
What is an enumerator c#?
What are c# attributes and its significance?