Default case in a switch condition

defalut is just a label in your program that you can jump to with goto. Having an editor that highlights keywords could have made this error easier to spot.

I should also note that your program may have some logic errors. The character '1' is not the same as 1, and the same with '2' and 2.

Leave a Comment