I guess every switch algorithm can be re-written by if...else if...else algorithm, then why do we still need switch any more? Is there big differences in code efficiency?
The same question also goes to for and while loop algorithms.
I guess every switch algorithm can be re-written by if...else if...else algorithm, then why do we still need switch any more? Is there big differences in code efficiency?
The same question also goes to for and while loop algorithms.