What will be the output of the following program.
Correct Answer : A
main, a character variable
direction is declared and initialized to
'E'. This is passed as parameter to
case 'E' gets executed printing East. As there is no
break statement, control will not go out of switch. It falls through, executing the next display statement and prints West. Then
break is encountered and the control goes out of