It is not necessary to write default in the last. You can write it anywhere in the switch case in c programming.