Question 1  of   15

What is the output of the following program? class Program { static void Main() { int a = 2, b = a; ByRef(ref a); ByVal(b); Console.Write($"{a}{b}"); } static void ByRef(ref int p) { p *= 2; } static void ByVal(int p) { p *= 2; } }

A. 22
B. 44
C. 42
D. 24