What will be the output of the following C# code?
static void Main(string[] args)
{
int i= 0,k;
label: Console.WriteLine(i);
if (i == 0)
goto label;
Console.ReadLine();
}
static void Main(string[] args)
{
int i= 0,k;
label: Console.WriteLine(i);
if (i == 0)
goto label;
Console.ReadLine();
}A. 0 0 0 0
B. 0 0 0
C. 0 infinite times
D. 0
Answer: Option C

Join The Discussion