adplus-dvertising
frame-decoration

Question

Select the output for the following set of code :
static void Main(string[] args)
  {
      int  i = 9 , j = 7;
      switch (i - j + 3)
      {
      case 9: 7:
          j += 6;
          break;
      case 5:
          i -= 4;
          break;
      }
      Console.WriteLine(i + "\n" + j);
      Console.ReadLine();
  }

a.

5 7

b.

9 13

c.

Compile time error

d.

9 7

Answer: (c).Compile time error

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 :