C MCQs :- multiple choice questions and answers. e.g C MCQS,C Mock Tests , C Practice Papers ,C Sample Test,C Sample questions

Your Session ID :-Guest1547636

Question 1: Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main() { Sample x = new Sample(); x.i = 10; fun(x); Console.Write(x.i + "" ""); } static void fun(Sample y) { y.i = 20; Console.Write(y.i + "" ""); } } }

10 20

10 10

20 10

20 20

Total MCQS Questions are 13 in this paper