Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
15.1 and "switch(0) case 0:"
#1
Hi,
Given the following code:
Code:
...
switch(0)
case 0:
...
does the example presented violate rule #15.1? Syntactically, the "switch(expression)" is followed by a "statement" and not necessarily a "compound statement" as stated in the rule. Therefore, can we correctly presume said code violates said rule?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)