Interview Questions

What is the difference between proc. sent BY VAL and BY SUB?

C# Interview Questions and Answers


(Continued from previous question...)

226. What is the difference between proc. sent BY VAL and BY SUB?

BY VAL: changes will not be reflected back to the variable.
By REF: changes will be reflected back to that variable.( same as & symbol in c, c++)

Other Interview Questions