I have a switch statement with more than 15 different cases. I want to replace that with any better alternative which would be efficient and also will take less code.
I came to know that function pointer can be one alternative. I dont know any anything about and had not used these till now.
Please let me know how it can be done or any better alternate if available.
Thanks in advance.