The default case statement is mandatory in a switch statement.State whether it is true or false.
Answers
Answered by
7
ur answer___________
false:: default case is not mandatory....
false:: default case is not mandatory....
Answered by
2
The default case statement is mandatory in a switch statement is a false statement.
Switch default case
- A switch statement is used to check a value of a variable to a list of values for equality.
- The default case is optional in a switch statement.
- The default case, which is optional, must occur at the end of the switch statement.
- If the value of the test expression does not meet one of the switch's case options, then the default is used.
- In the default occurence, no break is needed.
Similar questions
Science,
7 months ago
Environmental Sciences,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago