adplus-dvertising
frame-decoration

Question

Select the output for the following set of 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…

Posted under C# programming

Answer: (d).Hi…

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for the following set of code :