Break takes control out of a switch. Does continue, used inside a switch, take control back to the beginning of that switch?
Answer: B
Correct answer: No
break does end a switch, but continue has no meaning inside one: it asks for the next iteration, and a switch has no iterations. A continue written inside a switch applies to the loop enclosing the switch, and if there is no such loop the program will not compile.
Please log in or register to report this question.