101 Lecture Notes - Lecture 1: Increment And Decrement Operators, For Loop, Negative Number

6 views29 pages

Document Summary

Operators, operator precedence and associativity, evaluating expressions, selection & Making decisions: two way selection, multiway selection, repetition: concept of loop, Pre-test and post-test loops, initialization and updating, event and counter controlled loops, Loops in c, other statements related to looping, looping applications- summation, powers, An operator is a symbol that tells the computer to perform certain mathematical or logical operations. Types: arithmetic operators, relational operators, logical operators, assignment operators, increment and decrement operators, conditional operators, bitwise operators, special operators. Arithmetic operators are used to perform arithmetic operations like addition, subtraction, multiplication , division and to find the remainder in division. +(addition or unary plus), - (subtraction or unary minus), *, /,%(modulo division). C does not have an operator for exponentiation. It is used to relate any two or more quantities. It is used to combine two or more relational expressions.