582 views

1 Answer

2 votes
2 votes

No,CONTINUE is not allowed in DEFAULT case of switch-case.

Here see output of code (using continue statment DEFAULT case )

for more -

Related questions

1 votes
1 votes
2 answers
1
Hira Thakur asked Sep 14, 2018
1,467 views
int main() { int a =50; switch(a) { default: a=45; case 49: a++; case 50: a ; case 51: a =a+1; } printf("%d",a); }my doubt is the default case is not executed here why??,...
1 votes
1 votes
1 answer
2
3 votes
3 votes
2 answers
3
Sankaranarayanan P.N asked Oct 27, 2016
411 views
What will be the output of the following C program fragment?int n =1; switch(n) { case 1: printf("One"); case 2: printf("Two"); case 3: case 4: case 5: default: printf("W...