This article introduces the usage of 32 keywords defined in the C language standard. For more information, see.
Keywords |
Meaning |
Auto |
Declare automatic variables. The default value of the time-saving compiler is auto. Function call is to allocate space, call ends, and release space. |
Int |
Declare int; |
Double |
Declare double; |
Long |
Declare long integer variable long; |
Char |
Declare the character type variable char a []; different from C # char []; |
Float |
Declare float; |
Short |
Declare a short integer variable |
Signed |
Declare signed type variables |
Unsigned |
Declare an unsigned Type Variable |
Struct |
Declare struct Variables Struct student { String name; Int age; } // Widely used |
Union |
Declare federated Data Types |
Enum |
Declare Enumeration type |
Static |
Declare static variables |
Switch |
Switch statement |
Case |
Switch statement |
Default |
Other branches in the switch statement |
Break |
Jump out of the current loop |
Register |
Declare register variables |
Const |
Declare Read-Only variables |
Volatile |
It indicates that the variable is implicitly changed during program execution. |
Typeof |
Swimsuit uses aliases for data types to enhance program portability |
Extern |
Declared variables are declared in other files |
Return |
Subroutine Return Statement |
Void |
Declare a function with no return value or no parameter, and declare a null pointer. |
Continue |
End the current cycle and start the next cycle |
Do |
Execute the loop body statement |
While |
Loop condition of the loop body statement |
If |
Condition Statement |
Else |
Condition Statement negative Branch |
For |
A loop statement |
Goto |
Unconditional jump statement |
Sizeof |
Memory space occupied by computing objects |