From WikiChip
Editing c/reserved keywords
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | '''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. | The table below lists all keywords reserved by the C language. | ||
Line 48: | Line 48: | ||
*_Complex<sup>1</sup> | *_Complex<sup>1</sup> | ||
| | | | ||
− | * | + | *[[generic selection - C|_Generic]]<sup>2</sup> |
*_Imaginary<sup>1</sup> | *_Imaginary<sup>1</sup> | ||
*_Noreturn<sup>2</sup> | *_Noreturn<sup>2</sup> | ||
− | * | + | *[[static assertions - C|_Static_assert]]<sup>2</sup> |
*_Thread_local<sup>2</sup> | *_Thread_local<sup>2</sup> | ||
|} | |} | ||
− | <sup>1</sup> - Keywords added in [[C99]]. | + | <sup>1</sup> - Keywords added in [[C99]]. |
<sup>2</sup> - Keywords added in [[C11]]. | <sup>2</sup> - Keywords added in [[C11]]. | ||
Line 73: | Line 73: | ||
* _Alignof | * _Alignof | ||
* _Atomic | * _Atomic | ||
− | * | + | * [[generic selection - C|_Generic]] |
* _Noreturn | * _Noreturn | ||
− | * | + | * [[static assertions - C|_Static_assert]] |
* _Thread_local | * _Thread_local | ||
[[Category:C programming language]] | [[Category:C programming language]] |