C语言快速复习(国外英文资料)
C语言快速复习
= = = = the composition of the C language source files
Preprocessing instructions:
All lines that start with '#' are pre-processing instructions.
The include define # ifndef endif, etc
Such as:
# include < stdio, h >
# define N 10
Define statements:
Structure type definitions, alias definitions, global variable definitions, and so on.
Such as:
Struct student {
Int id;
Int score;
};
Typedef int int32.
The int value = 10;
Statements:
Function prototype declaration, global variable declaration, etc.
Such as:
Extern int fun (void);
Extern int value.
Function:
The set of instructions, the basic unit of the C language execution statement, any expression that is contained within the function.
= = = = = = = = = = = = = = = = = = = = = = = = C language syntax of = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Key words:
The C language has a built-in symbol that is used for grammar control, which forms the syntax of the C language.
Storage: auto extern register static
Data type: int char short long float double signed unsigned void
If else for while do break continue switch case default goto return
Other: sizeof volatile const union struct typedef enum
Identifier:
User-defined symbols used to mark variables, functions, types, and so on.
Defining rules for identifiers:
It can only be made up of English case, underline, and Numbers.
Don't name the keyword.
You can't start with a number.
Length limitation (non-standard).
Operator:
The symbol used in the C language is used as a calculation. Be careful about priorities and combinations when you use them.
Arithmetic: + - * / %
Relationship: > > = = =. =
Logic:
A: & | ~ ^ < < > >
Assignment: = + = = * = / = % = > > < < = = & = ^ = | =
Other: () - >. :,
Interval: used as a lexical analysis.
Spaces, lines, tables, notes
Punctuation:
"" " ()
1 byte = 8 bit
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = C language data = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Variable: used to hold data,
本文档快速回顾了C语言的基础,包括预处理器指令、数据类型、变量、函数等核心内容,同时深入解析了关键字、运算符、语句结构和语法要点。适合复习者快速掌握C语言要点。
297

被折叠的 条评论
为什么被折叠?



