General practice to specify a break after a default clause?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-06-09T05:36:44Z
Indexed on
2010/06/09
5:42 UTC
Read the original article
Hit count: 148
If I have a switch statement:
switch()
{
case 1: ...
case 2: ...
...
default:
break;
}
Is there any reason for the break in the default clause? I see this in quite a few places, but isn't it unnecessary? What is the general practice?
Can another case label come after the default clause?
© Stack Overflow or respective owner