Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
default |
Multipurpose label | L | Keyword | C89 | C90 | C95 | C99 | C11 |
The keyword default
has two similar uses:
-
It identifies the point within a switch statement that control should jump to when no other label matches the value of the controlling expression.
-
From C11, it identifies the expression of a generic selection to be chosen when no other expression's type label matches the type of the controlling expression.