Answer Posted / ashwini
When arguments are passed to a method ByVal i.e. By Value
then the original value of a variable is not passed but its
copy is created and that copy is passed. So whatever
changes are made, they will affect the copy but not the
original value of a variable.
When arguments are passed ByRef i.e. By Reference
then the argument's memory location is passed to a method.
So changes made to that argument's value will actually
affect the original value.
| Is This Answer Correct ? | 31 Yes | 1 No |
Post New Answer View All Answers
What are the different states of a thread?
What is delegates in c#?
What is Garbage Collection in .Net?
If you donot specify an access modifier for a method, what is the default access modifier?
Explain manifest in c#.
Why do we use 0?
What does type safety mean?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
What are the properties of c#?
Illustrate race condition?
Why do we use lambda expression in c#?
What is the use of expression tree in c#?
How do you use nullable?
Is list immutable in c#?
What is a must for multitasking