Question: Which switch syntax is correct? switch (choice) { case 1:1 Console.WriteLine(First one..); } break; switch (choice) { case 1: Console.WriteLine(First one..); } switch {
Which switch syntax is correct? switch (choice) { case 1:1 Console.WriteLine("First one.."); } break; switch (choice) { case 1: Console.WriteLine("First one.."); } switch { case 1: } Console.WriteLine("First one."); break; switch (choice) { case 1 Console.WriteLine("First one..."); break;
Step by Step Solution
3.53 Rating (167 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below ... View full answer
Get step-by-step solutions from verified subject matter experts
