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 are strings immutable in c#?
What is the difference between and xml documentation tag?
What is an inheritance ?Give an example in which inheritance is used?
How to update the gui from another thread in c#?
Does c# support multiple class inheritance?
Is c# int immutable?
What is deferred execution in c#?
Is c# still popular?
What is global asax in c#?
Define collections?
Why we use get set property in c#?
What is delegate in c# interview questions?
Can we set image Source dynamically using C# in WPF application?
Can abstract class instantiated c#?
Which sorting algorithm is best?