adplus-dvertising
frame-decoration

Question

Select output for the following set of 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: (c).0 infinite times

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select output for the following set of code :