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
How big is an int in c#?
What is difference between for and foreach in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Does c# provide copy constructor?
What is the data provider name to connect to access database?
What is the difference between yield and return?
What are abstract classes in c#?
Can I do things in il that I can't do in c#?
What is a decimal in c#?
What is difference between Trace and Debug
What are fields in c#?
Do we get an error while executing the “finally” block in c#?
What is difference between array and arraylist in c#?
Explain hash table in c# ?
What is public, private, protected, internal and internal protected?