C language keyword of a total of 32

  • 2020-04-02 01:12:22
  • OfStack

C language has a total of 32 keywords, as follows:

Auto: declares an automatic variable
Short: declares a short integer variable or function
Int: declares an integer variable or function
Long: declares a variable or function of a long integer
Float: declares floating - point variables or functions
Double: declares a double - precision variable or function
Char: declares a variable or function of character type
Struct: declares a struct variable or function
Union: declares Shared data types
Enum: declares an enumerated type
Typedef: used to alias a data type
Const: declares read-only variables
Unsigned: declares an unsigned type variable or function
Signed: declares a signed type variable or function
Extern: declared variables are declared in other files
Register: declares a register variable
Static: declaration of a static variable
Volatile: indicates that variables can be changed implicitly during program execution
Void: declares that a function returns no value or takes no arguments and that it has no type pointer
If: conditional statement
Else: conditional statement negating branch (used with if)
Case: switch statement branches
For: a circular statement
Do: the body of a loop statement
While: looping condition for a looping statement
Goto: unconditional jump statement
Continue: ends the current loop and starts the next loop
Break: break out of the current loop
Default: other branch in the switch statement
Sizeof: calculates the length of the data type
Return: subroutine returns statement (with or without arguments) loop condition

Related articles: