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 difference between association, aggregation and inheritance relationships?
Why do we need escape characters?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
What is dictionary class in c#?
What is the difference between Decorator and Adapter pattern?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
What is code verification?
Explain about Oops concept
If dll and exe files are same it means you can deploy both the files in gac?
What is the difference between // comments, /* */ comments and /// comments?
Are private members inherited in c#?
How to move to a state-related codebase?
How does split work in c#?
What is the use of flag in c#?
What does protected internal access modifier mean?