Vidyalelo
C# Programming · Q64

Arrays and Strings in C Sharp

Programming · C# Programming · question 64

Q64

Which method does following C# 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
Answer
B.
Call by value
C.
Output parameter
D.
parameter arrays

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board