What will be the output of the following C# code? [code] { int i; Console.WriteLine("Hi"); for (i = 1; i <= 10; i++)

What will be the output of the following C# code?
Code:
  {
      int i;
      Console.WriteLine("Hi");
      for (i = 1; i <= 10; i++)
          Program.Main(args);
      Console.ReadLine();
  }
A. Prints 'Hi' for one time
B. Prints 'Hi' for infinite times
C. Stack overflow exception Condition generated
D. None of the mentioned
 

Tìm kiếm

Back
Top