No, it is not necessary to have default within the switch. But the good programming practices recommend to have default case in switch statement and also break; within each "case" as well as within the "default".
As I could guess that switch case should be avoided in C can someone explain in detail when not to use switch case statement?