Hoàng Minh An
New member
What will be the output of the following C# code?
A. No output
B. hello
C. hello printed infinite times
D. Code will give error as expression syntax
Code:
static void Main(string[] args)
{
int i;
for (i = 0; ; )
{
Console.WriteLine("hello");
}
Console.ReadLine();
}
B. hello
C. hello printed infinite times
D. Code will give error as expression syntax