?
What will be the output of the following C# code?
What will be the output of the following C# code?
static void Main(string[] args)
{
int y = 3;
y++;
if (y <= 5)
{
Console.WriteLine("hi");
Main(args);
}
Console.ReadLine();
}
static void Main(string[] args)
{
int y = 3;
y++;
if (y <= 5)
{
Console.WriteLine("hi");
Main(args);
}
Console.ReadLine();
}
Join the Discussion
Login to post a comment or share your explanation.
Login