Writing this article is mainly to review the re-examination C language online collection of information sorted out the C language common keywords.
1. Data type keyword (12)
- char: character variable or function declaration
- double: double declared variable or function
- enum: enum type declaration
- float: float variable or function declaration
- int: integer variable or function declaration
- long: long integer variable or function declaration
- short: short integer variable or function declaration
- signed: a statement signed type variable or function
- struct: declare a structure variable or function
- union: union data type declaration
- unsigned: declare unsigned type variable or function
- void: declare function does not return a value or no parameters, no statement (effect basically three) types of indicators
(2) control statement keyword (12)
- A. loop
- (1) for:. Iterative statements (any woman)
- (2) do:. Statement circulation loop
- (3) while:. Cycling conditions looping statement
- (4) break:. Out of the current cycle
- (5) continue:. End the current cycle, the next cycle start
- B. Conditional statements
- (1) .if: conditional statements
- (2) .else: the negative branch of conditional statements (and if used in conjunction)
- (3) .goto: Unconditional jump statement
- A switch statement C.
- (1) .switch: a switch statement
- (2) .case: a switch statement branch
- (3) .default: switch statement "the other" branch
- D.
- return: subroutine return statement (can take parameters, also see no arguments)
3. Type the keyword memory (4)
- (1) .auto: automatic variable declaration is generally not used
- (2) .extern: declare variables is being declared in other files (can also be seen as a reference variable )
- (3) .register: declare variables stacker
- (4) static:. Declare static variables
4. Other Categories (4)
- (1) .const: read-only variable declaration
- (2) .sizeof: Data Type Length Calculation
- (3) .typedef: alias for the data type (of course, other effects)
- (4) .volatile: explanatory variables in the program execution can be implicitly changed