Yes, to handle all possible values. Compilers do static code analysis (see -Wswitch-default in gcc(1))