Operators and Expressions in C

An Operator is a symbol in C language that performs some mathematical, logical, etc. operations on some data. The data items on which operators act upon are called Operands. Some operators require two operands while others require only one operand. A few operators permit only single variable as operand. Operators form Expressions by joining individual operands which can be constants, variables, etc. Most operators allow the individual operands to be expressions.

C programming language provides several operators to perform different kind to operations. There are operators for assignment, arithmetic functions, logical functions and many more. These operators generally work on many types of variables or constants, though some are restricted to work on certain data types. Most operators are binary, meaning they take two operands. A few are unary and only take one operand. There is a single ternary operator which operates on three operands. Operators can be classified based on the type of operations they perform as follows:
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Assignment Operators
5. Bitwise Operators
6. Miscellaneous Operators