What Will Be The Output Of The Following C Code Snippetp Pre #871

What will be the output of the following C# code snippet?</p> <pre><code class="language-csharp" line="1"> class test { public int a; public int b; public test(int i, int j) { a = i; b = j; } public void meth(test o) { o.a *= 2; o.b /= 2; } } class Program { static void Main(string[] args) { test obj = new test(10, 20); obj.meth(obj); Console.WriteLine(obj.a + " " + obj.b); Console.ReadLine(); } } </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Miscellaneous Topics - Accessor Controls of Class - Quiz No.2.


Similar question(s) are as followings:



Online Quizzes of gs108 CSharp

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background