Examveda

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();
}

A. 0 0 0 0

B. 0 0 0

C. 0 infinite times

D. 0

Answer: Option C


Join The Discussion

Related Questions on Control Flow Statements in C Sharp