Computer Science, asked by rahmanriyadh1644, 1 year ago

Can i write switch statemwnt without case

Answers

Answered by Adarshm
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
Answered by Anonymous
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