Structures - Programming

Q1:

Which of the following will be the correct output for the C#.NET program given below?
namespace AptitudeCrackConsoleApplication
{ 
    struct Sample
    { 
        public int i;
    }
    class MyProgram
    { 
        static void Main(string[] args)
        {
            Sample x = new Sample(); 
            x.i = 10; 
            fun(ref x); 
            Console.Write(x.i + ' ');
        }
        public static void fun(ref Sample y)
        { 
            y.i = 20;
            Console.Write(y.i + ' '); 
        } 
    } 
}

A 20 10

B 10 20

C 10 10

D 20 20

E None of the above

ANS:D - 20 20

No answer description is available. Let's discuss.