- 9
- 0
- 约1.38万字
- 约 36页
- 2017-02-02 发布于江苏
- 举报
C语言英文版课件课件精品
Introduction to Computer(C Programming) Software College , Northeastern University 2007,9 3.1 introduction C operators can be classified into a number of categories. They include: Arithmetic operators. Relational operators. Logical operators. Assignment operators. Increment and decrement operators. Conditional operators. Bitwise operators. Special operators. 3.2 Arithmetic operators Operator Meaning + Addition or unary plus - Subtraction or unary minus * Multiplication / Division % Modulo division Example 3.1 The Program shows the use of integer arithmetic to convert a given number of days into months and days. 3.3 Relational Operators C supports six relational operators in all: Operators Meaning is less than = is less than or equal to is greater than = is greater than or equal to == is equal to != is not equal to Relational Operator Complements 3.4 Logical Operators C has the following three logical operators: meaning logical AND || meaning logical OR ! meaning logical NOT Truth Table Op_1 Op_2 Value of the Expression op_1op_2 op_1||op_2 Non_zero Non_zero 1 1 Non_zero 0 1 1 0 Non_zero 1 1 0 0 1 1 3.5 Assignment Operators C has a set of ‘shorthand’ operators of the form: v op =exp; where v is a variable, exp is an expression op is a C binary arithmetic operator
您可能关注的文档
最近下载
- 《影视视听语言》第四版 07189 第六、七、八、九章.pptx VIP
- 声带息肉手术患者护理查房.pptx VIP
- 《影视视听语言》第四版 07189第五章.pptx VIP
- 《影视视听语言》第四版 07189第三章.pptx VIP
- 《影视视听语言》第四版 07189 第一章课件.pptx VIP
- 高一地理自然地理环境的差异性.pptx VIP
- 《影视视听语言》第四版 07189 第二章.pptx VIP
- 2026年南宁职业技术学院单招职业适应性考试模拟测试卷附答案解析.docx VIP
- 高中地理 人教版 选修一《自然环境的整体性与差异性》自然环境的整体性 课件.pptx VIP
- 健康证考试题及答案.docx VIP
原创力文档

文档评论(0)