C MCQs

Q1. 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 + "" ""); } } }


Warning: Undefined variable $test in /home/u978544338/domains/r4r.co.in/public_html/mcqs/exams-main-page.php on line 297

Question 1 of 13 (Total MCQS: 13 in paper )

@by R4R.CO.IN | Back to C