+ 3
can we use "continue" statement in "switch" ??
6 Answers
+ 4
no,we can not write continue in switch statement.we can use "continue " only in loops
+ 1
just don't put a break; statement if you want the code to continue down the switch.
+ 1
no it can't be used. its only used in loops
+ 1
1. Switch case isn't a looping function like for, while, di while
2. Continue should be used only in loops.
3. Why should continue to be used only in loops?
Continue skips the remaining block of statements and will go to the entry of loop. So if there isn't a loop, where it should go? So will give you an error that contine is not used in loop
0
no u can't
- 1
No, you can't