In a 'switch' statement, the ________ keyword is used to specify the code to execute if none of the cases match.

  • Break
  • Continue
  • Default
  • Exit
The correct option is (c) Default. In a 'switch' statement in C, the 'default' keyword is used to specify the code to execute if none of the cases match the provided value. It acts as a fallback option.
Add your answer
Loading...

Leave a comment

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