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 |