in c#, is it necessary default case have break keyword??
This is not C# syntax, but anyway: If you close your program, how should the compiler check, if your case ends with a break statement? That doesn't really make sense to me.
You need one of these statements at the end of each case: break, goto, return or throw It is mandatory to have one of this statements on each case, even for the default case.
case 1: exit(0); why this is not required break keyword?