文档介绍:运算符与表达式:
常量 2. variable 变量 3. identify 标识符 4. keywords 关键字
5. sign 符号 6. operator 运算符 7. statement 语句 8. syntax 语法
9. expression 表达式 10. initialition 初始化 11. number format 数据格式 12 declaration 说明 13. type conversion 类型转换 、 definition 定义
introduction:
C is a general-purpose programming language .The language , however , is not tied to any one operating system or machine ; and although it has been called a “system programming language “ because it is useful for pilers and operating systems , it has been used equally well to write major programs in many different domains .
C provides the fundamental control –flow constructions required for well-structured programs: statement grouping , decision making (if –else ), selecting one of a of possible cases (switch),looping with the termination test at the top (while ,for ) or at the bottom (do), and early loop exit (break).
条件语句:
选择 2. expression 表达式 3. logical expression 逻辑表达式 4. Relational expression 关系表达式 优先 6. operation 运算 结构
if-else statement
The if-else statement is used to express decisions . Formally, the syntax is
If (expression )
statement1
else
statement2
where the else part is optional .
The switch statement is a multi-way decision that tests whether an expression matches one of a number of constant integer values , and branches accordingly .
s