Introduction
In the previous unit we have learnt variables, constants, datatypes and how to declare them in C programming. The next step is to use those variables in expressions. For writing an expression we need operators along with variables. An expression is a sequence of operators and operands that does one or a combination of the following:
An operator performs an operation (evaluation) on one or more operands. An operand is a subexpression on which an operator acts.
This unit focuses on different types of operators available in C including the syntax and use of each operator and how they are used in C.
A computer is different from calculator in a sense that it can solve logical expressions also. Therefore, apart from arithmetic operators, C also contains logical operators. Hence, logical expressions are also discussed in this unit.
Objecticves
After going through this unit you will be able to: