Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
15.2 and 'break's inside if-else
#1
Suppose I have the following code:
Code:
...
switch( x )
{
case 1:
    if( y )
        {
        ...
        break;
        }
    else
        {
        ...
        break;
        }
default:
    break;
}
...

Does this code violate rule #15.2?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)