Home / MCQ Bank / Computer
Computer Arrays And Strings In C Sharp Difficulty: Medium

What will be the output of the following C# code? static void Main(string[] args) { int a = 5; int b = 0, c = 0; method (a, ref b, ref c); Console.WriteLine(b + " " + c); Console.ReadLine(); } static int method(int x, int p, ref int k) { p = x + x * x; k = x * x + p; return 0; }

Select the correct option to test your answer:

More Computer Questions

If a={5,6,7,8}, which of the following statements is false? What is the correct postfix expression for the following expression? a+b*(c^d-e)^(f+g*h)-i Which of the following method moves an element from its current position using tranform? The function pow(x,y,z) is evaluated as: Which of these statement is incorrect?