C# Call by reference

tutorial and example
tutorial and example

In C#, we can use ref keyword to pass the reference to the original value instead of the copy of the original value. the changes that are made in the reference causes the permanent modification in the original value .

Let’s see a simple example of passing reference in a function. 

Output