+ 3

can we use "continue" statement in "switch" ??

9th Jul 2016, 8:17 PM
Anup Shetty
6 Answers
+ 4
no,we can not write continue in switch statement.we can use "continue " only in loops
10th Jul 2016, 2:35 AM
Tushar Marathe
Tushar Marathe - avatar
+ 1
just don't put a break; statement if you want the code to continue down the switch.
9th Jul 2016, 10:31 PM
James
James - avatar
+ 1
no it can't be used. its only used in loops
26th Nov 2016, 11:56 AM
Kenneth Agyare
+ 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
17th Feb 2017, 2:56 AM
Kommoju Sunil Kumar
Kommoju Sunil Kumar - avatar
0
no u can't
13th Sep 2016, 2:49 AM
surya
- 1
No, you can't
9th Jul 2016, 8:45 PM
Satyendra Kumar
Satyendra Kumar - avatar