User Profile
Collapse
Profile Sidebar
Collapse
srikky
Last Activity: Aug 14 '12, 01:51 PM
Joined: Aug 14 '12
Location:
-
Is it a good practice to use those many switch cases... is there any other better approach? -
-
Jump table instead of Switch cases
Hi,
I have an issue with switch case. There are about 32 cases to be handled in switch. each case just assigns a hexadecimal to a local variable.
#define ADFV 0x0301
Switch(error_in dex)
{
case 1:
var = ADFV;
........
}
}
can i use jump table for above issue to reduce the code size.
No activity results to display
Show More
Leave a comment: