In C# when we have pass any variable by reference we use the ref keyword. When we pass a variable by reference in the function the changes done in the function are directly happening on the original variables.
When a variable is passed by value a copy of these variable is created in the function and the operation is done on those copies.No changes can be seen on the original variables.