Operators One of the most important features of C is that it has a very rich set of built in operators including arithmetic, relational, logical, and bitwise operators. An operator can be any symbol like + - * / that specifies what operation need to be performed on the data. For ex: + indicates addition operation * indicates multiplication operation Operand VS Operator • An operand can be a constant or a variable. • An expression is a combination of operands and operators that reduces to a single value. For example: Consider the following expression: a+ b Here 'a' and 'b' are operand while 't' is an operator Operators & Expression are 1) Arithmetic Operators and Expressions 2) Assignment and Compound Assignment Operators 3) Increment and Decrement Operators 4) Relational Operators and Expressions 5) Logical Operators and Expressions 6) Bitwise Operators and Expressions Arithmetic Operators An arithmetic operator performs mathematical operators such
Comments
Post a Comment