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
Why can't we use a static class instead of singleton?
Is python easier than c#?
What is c# most used for?
What is the difference between add and addrange in c#?
what is a destructor?
Why do we need interface in c#?
Why use “using” in c#?
What is a string in c#?
What is int32 in c#?
What is the use of properties window?
What are sessions in c#?
What is the difference between public, static, and void?
What is parameters in c#?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
How many digits is a 32 bit number?