The below code is an entire c program what are the two


The below code is an entire C# program. What are the two errors in the following lines of code? If the program were allowed to run, as it is, what would be the problem?:

//, , Description: The program below is the complete program

int num = 1;

switch(num)

{

case 0:

Console.WriteLine("Case 0 output");

case 1:

Console.WriteLine("Case 1 output");

default:

Console.WriteLine("Case Default output");

 } //switch ends

Solution Preview :

Prepared by a verified Expert
Software Engineering: The below code is an entire c program what are the two
Reference No:- TGS02511268

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)