If no case matches in a switch statement and there is no default case, the control is passed to the _________.

  • Next statement
  • Previous case
  • Last case
  • Next iteration
If no case matches in a switch statement and there is no default case, the control is passed to the next statement after the switch. This behavior is important to understand because it determines what happens when none of the cases match the expression value.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *