Select the correct option to test your answer:
Computer
Classes And Objects In C Sharp
Difficulty: Medium
What will be the output of the following C# code? { struct abc { public int i; } class Program { static void Main(string[] args) { sample a = new sample(); a.i = 10; fun(ref a); Console.WriteLine(a.i); } public static voidn fun(ref sample x) { x.i = 20; Console.WriteLine(x.i); } } }
More Computer Questions
What attempts auto recovery based on the contents of its serial log?
What are the initial capacity and load factor of HashSet?
What is the average time complexity of stooge sort?
What happens when we use the following C statement?
Which tool is commonly used for Ruby version management and dependency isolation?