Keyword
Treemap overview
Operator
The difference of sizeof strlen The
specific and detailed difference stamp here is the difference of sizeof strlen
Data type keywords
Data types are char int float enum short and long unsigned signed
Language storage type keywords
auto————The invisible assassin
auto as an automatic variable So what is an automatic variable? Automatic variables are local variables . They are destroyed when they go out of the scope of the function. All unmodified local variables in the C language use auto but auto can be omitted.
static——————The powerful giant
static function :
- Indicate the attribute of the variable "static", and the variable is stored in the static area.
- Also has the meaning of "scope qualifier"
note
- The scope of static modified global variables is only in the declared file
- The scope of the static modified function is only in the declared file
register————register variable
Register function: register indicates that the variable will be stored in the register.
Note:
- Just register request register variables, and not necessarily successful
- The register variable must be a value acceptable to the cpu register
- Cannot use the & operator to get the address of the register variable
- This usually means that the register variable must be a single value, and the length should be less than or equal to the length of the integer (part of the floating point can be stored)
summary
- The auto variable is stored in the program stack area and is the default attribute
- Static variables are stored in the static area of the program
- The register variable request is stored in the cpu register
Declaration definition
typedef
Define the type use typedef to
define the constant use define