Its quicker than C Conditional Statements And it looks nicer
You may see that you need break;
statements at the end of every case. Well, they didn’t make the switch statement so well. The C authors apoligise for it. but anyhow, this is Defensive Programming