From WikiChip
Difference between revisions of "c/reserved keywords"
m (→C11 changes from C99: added wikilinks) |
|||
Line 73: | Line 73: | ||
* _Alignof | * _Alignof | ||
* _Atomic | * _Atomic | ||
− | * _Generic | + | * [[generic selection - C|_Generic]] |
* _Noreturn | * _Noreturn | ||
− | * _Static_assert | + | * [[static assertions - C|_Static_assert]] |
* _Thread_local | * _Thread_local | ||
[[Category:C programming language]] | [[Category:C programming language]] |
Revision as of 04:10, 27 December 2013
Reserved keywords in C are a set valid identifier names which are part of the grammar of C and therefore may not be used for anything but their intended purpose. That is, they may not be used as variable names, function names, or an any other type of identifiers. Just like all other identifier in C, they are case sensitive.
The table below lists all keywords reserved by the C language.
|
|
|
|
|
1 - Keywords added in C99. 2 - Keywords added in C11.
C99 changes from C89
C99 added the following keywords:
- inline
- restrict
- _Bool
- _Complex
- _Imaginary
C11 changes from C99
C11 added the following keywords:
- _Alignas
- _Alignof
- _Atomic
- _Generic
- _Noreturn
- _Static_assert
- _Thread_local