Can i write switch statemwnt without case
Answers
Answered by
0
No two constant expressions in case statements can evaluate to the same value. The default label can appear only once. The labeled statements are not syntactic requirements, but the switch statement is meaningless without them.
please mark it as brainlist
please mark it as brainlist
Answered by
0
YES! you can write switch statement without case,
BUT it will not do anything then, and there is no sense in writing switch statement without case.
Similar questions