We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using switch statement as follows
uint16 val;
switch (val) { case 0x0000: ... break case 0x0001: ... break case 0x0000: ... break case 0x0000: ... break case 0x0000: ... break case 0x0004: ... break case 0x0005: ... break case 0x0304: break;
default: break }
some times control jumps from one case to other case eventhough there are break statements for each case.
Thanks Pankaj
its:
case val: break;
note semicolon after break ; is missing in most of your code