Computer Science, asked by TbiaSupreme, 1 year ago

The default case statement is mandatory in a switch statement.State whether it is true or false.

Answers

Answered by nitish8089
7
ur answer___________
false:: default case is not mandatory....
Answered by kavyapsynergy
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