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