adplus-dvertising
frame-decoration

Question

Select the output for the following set of 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 above mentioned

Posted under C# programming

Answer: (c).Stack overflow exception Condition generated

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for the following set of code :