INF: Misspelling "Default" Gives No Error

ID Number: Q40593

5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

It has been reported that when the keyword "default" is misspelled as

"defualt", the C compiler does not generate an error and the

executable code does not execute the "defualt" branch in any case.

This is not a problem with the C compiler. When the keyword "default"

is spelled incorrectly, it is treated as a label. You may use a goto

statement to reference the label.

Note: It is not good programming practice to jump to a label that is

within a switch statement from outside the switch statement.

Additional reference words: 5.10 6.00 6.00a 6.00ax 7.00