Collection
zero Useful+1
zero

Reserved word

Words defined by programming language
Reserved word high-level language Programmers can no longer use the words defined in as variable names, procedure names, or function names.
Reserved words include keywords and unused reserved words. Keywords refer to those words that have specific meanings in language and become part of grammar. In some languages, some reserved words may not be applied to the current syntax, which is the difference between reserved words and keywords. In general, this may be due to scalability considerations. For example, Javascript has some future reserved words, such as abstract, double goto wait.
Each Programming language They all have their own set of reserved words.
Chinese name
Reserved word
Foreign name
reserved word
Alias
keyword
Reference example
C language Reserved word
Double: declaration Double precision Variable or function
Int: declaration Integer variable Or function
struct : Declaration structural morphology Variable or function
Break: jump out of the current loop
else : Conditional statement Negative branch (used with if)
long : Declare a long integer variable or function
switch : for switch statements
Case: Switch statement branch
Enum: Statement Enumeration type
typedef : for data type Alias
char : Declare character variable or function
extern : Variables are being declared in other files
return subroutine Return statement (with or without parameters)
union : Declare a common data type
Const: declare a read-only variable
Float: declaration float Variable or function
short : Statement is short Integer variable Or function
unsigned : Declare an unsigned type variable or function
continue : End the current cycle and start the next cycle
signed : Declaration Signed type variable Or function
void : Declare function none Return value Or no parameter, declare a typeless pointer
default : Switch the "other" branch in a statement
goto : Unconditional jump statement
sizeof : Calculate data type length
volatile Description variable Can be changed implicitly during program execution
while : Loop condition of loop statement
Static: declaration Static variable
If: conditional statement
Inline: Statement Inline function
restrict : Used to qualify and constrain pointers
_Alignas :
_alignof :
_Atomic: Declare atomic type
_Bool: Declare Boolean type
_Complex: Declare complex type
_Generic:
_Imaginary: Declare an imaginary number type
_Norreturn: Make the function not return
_Static_assert:
_Therad_local: