Home > Back-end >  32 C language keywords
32 C language keywords

Time:11-14

The first category: data type keywords

Declare that the function has no return value or void parameters, no declarations pointer, explicitly rejected operation results,
Char data character types, belongs to a kind of integer data,
Int integer data, usually specify machine word length for the compiler,
Float single-precision floating-point data, belongs to a kind of floating point data, save the 6 decimal places,
Double double precision floating-point data, belongs to a kind of floating point data, higher than the accuracy of the float to save, save 15/16 decimal places,
Short modified int, short integer data, can be omitted was modified int,
Data long long int, plastic, can be omitted by modified int,
Signed integer data, there are symbolic data types,
Unsigne modified integer data, unsigned data type,
Struct structure declaration,
The union Shared body declaration,
Enum enumeration declarations,
Typedef statement type alias,
Sizeof get specific type or the size of the type variable,
Auto is specified for automatic variables by the compiler automatically allocation and release, usually allocated on the stack,
Static specified as static variables, assigned in a static variable area, modify functions, specify the function scope for the inside of a file,
Register is specified for register variables, it is suggested that the compiler will be used in variable stored in the register, can also modify the function parameter, it is recommended that the compiler through
A register rather than the stack pass parameters,
Extern specified corresponding to external variables, namely the defined in another object files, can be thought of as agreed upon by the other file statement,
Const and volatile called the "CV feature", specify variables may not be the current thread/process change (but may be system or other thread/process change
Volatile and const called the "CV feature", specify the value of a variable or other process/thread could be system change, forcing the compiler from memory every time the value of the variable,

The second category: process control keyword


Return in the function body, returns a specific value (or void value, that is, no return value),
Continu to end the current loop, begin the next round of cycle,
Break out of the current loop or a switch structure,
Goto unconditional jump statements,
If conditional statements,
The else branch conditional statement denying a laparoscope, usually connected to a (and if),
The switch switch statements (multiple statements),
Branch marks in case switch statements,
Default switch statement in the "other" divide and conquer, optional,
For the for loop structure, the for (1; 2; 3) 4; The execution of the order of 1 - & gt; 2-> 4-> 3-> 2... Circulation, two for loop condition,
Do the do loop structure, the do while 1 (2); The execution of the order is 1 - & gt; 2-> 1... Circulation, 2 for the loop condition,
While the while loop structure, the while (1) 2; The execution of the order is 1 - & gt; 2-> 1... Cycle, more than 1 cycle conditions, loops, when the loop condition


CodePudding user response:

This looks good!

CodePudding user response:

reference 1st floor hongss response:
this looks good!

Thank you thank you hope to be able to help you

CodePudding user response:

Summary is a good habit to regularly

CodePudding user response:

reference ooolinux reply: 3/f
often summary is a good habit ~

Thank you (* °?=3 °)

CodePudding user response:

reference ooolinux reply: 3/f
often summary is a good habit ~

Thank you (* °?=3 °)
  • Related