Select the correct option to test your answer:
Computer
Control Flow Statements In C Sharp
Difficulty: Medium
What will be the output of the following C# code? static void Main(string[] args) { int i = 2, j = 3, k = 4; switch (i + j - k) { case 0: case 2: case 4: ++i; k += j; break; case 1: case 3: case 5 : --i; k -= j; break; default: i += j; break; } Console.WriteLine(i + "\n" + j + "\n" + k); Console.ReadLine(); }
More Computer Questions
What is a "predicate method" in Ruby?
Which of the following is true about a triply linked list?
Which structure can be modelled by using Bipartite graph?
Which one of the following methods is responsible for sending the query to the database?
What is the meaning of "Hibernate" in Windows XP/Windows 7?