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.
Loading...
Related Quiz
- The function ________ is used to read formatted input from the standard input.
- When an array of strings is declared in C, what is it essentially an array of?
- How does a double pointer differ from a single pointer?
- How does the execution stack change when a recursive function is called in C?
- How can you determine the size of an array in C?