Computer Science, asked by jaishreeanbu2007, 6 months ago

Give the output of the following code fragment
char c = 'a';
switch( c)
{
case'a': system.out.println("1");
case'b': system.out.println("2");
case'c': system.out.println("3");
}

Answers

Answered by ItzAkelaRavan
4

Explanation:

case'b': system.out.println("2");

case'c': system.out.println("3");

}

Similar questions