Operators and Expressions
Introduction
C supports a rich set if build in operators. An operator is a symbol that tells the computer to perform mathematical or logical manipulations. Operators are used in programs to manipulate data and variables. They usually form a part of mathematical or logical expressions. C operators can be classified into a number of categories.
For example in the expression: c = a+b
Operators are = and +
Operand are a,b and c
On the basis of number of operand :
Eg: ++(increment), --(decrement)
Expression: ++a, --b
Eg: +,-,*,/
Expression: a+b, a/b
Eg: (? :) conditional operator
Expression: (a>b)? a:b
On the basis of function