Operators


Introduction

C supports a rich set of built-in operators. We have already used several of them, such as =, +, -, *, &, and <. An operator is a symbol that tells the computer to perform certain mathematical or logical manipulations. Operators are used in programs to manipulate data and variables. They usually form a part of the mathematical. or logical expressions.

C operators can be classified into different categories. They also include:

  1. Arithmetic operators
  2. Realational operators
  3. Logical operators
  4. Assignment operators
  5. Increment and decrement operators
  6. Conditional operators
  7. Bitwise operators
  8. Special operators

An expression operator and a sequence of operators that degrade a single value. For example,

10 + 20

is an expression whose value is 30. The value can be any type other than void.