What will be the output of the following C# code?

static void Main(string[] args)
 {
     int i = 0;
     if (i == 0)
     {
         goto label;
     }
     label: Console.WriteLine("HI...");
     Console.ReadLine();
 }

a) Hi…infinite times
b) Code runs prints nothing
c) Hi Hi
d) Hi…

1 thought on “What will be the output of the following C# code?”

Leave a Comment