Vidyalelo
C# Programming · Q40

Control Flow Statements in C Sharp

Programming · C# Programming · question 40

Q40

What will be the output of the following C# 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 + " " + j); Console.ReadLine();

A.
5 7
B.
9 13
C.
Compile time error
Answer
D.
9 7

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board