Answer:- In the given program, despite the statement c = c - 1;
being placed before case 4
, it doesn't affect the control flow within the switch
statement. When the switch
statement is evaluated, it checks the value of c
, which is 4
. As c
matches case 4
, "IITB" is printed. The invalid assignment c = c - 1;
doesn't change the control flow because assignments within a switch
block are not valid. Therefore, despite the presence of the invalid statement, "IITB" is printed.