As I could guess that switch case should be avoided in C can someone explain in detail when not to use switch case statement?