Hi,
I planning to replace the switch-case with an array of function
pointers, the index for the array would be the case integers. Each
case block would be implemented as a seperate function. It works fine
when all the functions have the exact signature like the return types
and formal input parameters.
In my case, some functions accept a different number of arguements.
Hence i can't have the array of different function pointers, is there
any alternative or work around to get it done by using the same
concept of invoking each case via function pointers?
Thanks in advance ! ! !