Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp Difficulty: Medium

What will be the output of the following C# code? static void Main(string[] args) { int i = 5; int j = 6; add(ref i); add(6); Console.WriteLine(i); Console.ReadLine(); } static void add(ref int x) { x = x * x; } static void add(int x) { Console.WriteLine(x * x * x); }

Select the correct option to test your answer:

More Computer Questions

In Microsoft Word, You can jump to the next column by____________? After right click the field selector button, which do you choose to delete a field in design view? Which of the following is correct about remove_extent() function? What is the role of NiFi's "GetHTTP" processor in a data flow? Which of the following methods is not used while Serialization and DeSerialization?