What will be the output of the following C# code?
A. 125 25
B.
C. Compile time error
D. 0 0
Code:
static void Main(string[] args)
{
int a = 5;
int s = 0, c = 0;
Mul (a, ref s, ref c);
Console.WriteLine(s + "t " +c);
Console.ReadLine();
}
static void Mul (int x, ref int ss, ref int cc)
{
ss = x * x;
cc = x * x * x;
}
B.
Code:
25 125
D. 0 0