1.

Which method does following set of code explains? static void Main(string[] args) { int a = 10, b = 20; method(ref a, ref b); console.writeline(a + " " + b); } static void swap(ref int i, ref int j) { int t; t = i; i = j; j = t; }

A. Call by reference
B. Call by value
C. Output parameter
D. Parameter arrays
Answer» B. Call by value


Discussion

No Comment Found