Assuming this example code (source):
#include
void playgame()
{
printf( \"Play game called\" );
}
void loadgame()
{
printf( \"Load g
break seems to be optional in that case. and also your code will work almost fine.
in many situations adding break improves your code and protect your code from errors/exceptions.
it increases readability, consistency and more error free.
some language like C# break(or other control-flow statement that exits the case) is technically needed after the last alternative. dan04
so for better programming practices i suggest one should use it.
see this excellent post for more details.