Replacing nested switches with the multi-dimensional array
A multi-dimensional array is very useful in C language. We can replace nested switch case with a multidimensional array using the pointer to function. Using this technique, a function that has a hundred lines of code reduced dramatically. Previously I have worked on a POS (point of sale) application, in this application we have used […]
Replacing nested switches with the multi-dimensional array Read More »