Question 1  of   20

What is the output of the following program? class Program { static void Main() { var a = new int[] {1, 2, 3}; var b = a; ByRef(ref a); ByVal(b); Console.Write($"{a.Length}, {b.Length}"); } static void ByRef(ref int[] p) { Array.Resize(ref p, p.Length-1); } static void ByVal(int[] p) { Array.Resize(ref p, p.Length - 1); } }

A. 2, 3
B. 2, 0
C. 2, 2
D. 3, 3