# C Operators

## The operator is simply a symbol that tells the C compiler to perform relational, mathematical or logical operations. To perform these operations, C language provides the following operators.

The operator is simply a symbol that tells the C compiler to perform relational, mathematical or logical operations. To perform these operations, C language provides the following operators.

• Arithmetic Operators
• Relational Operators
• Logical Operators
• Bitwise Operators
• Assignment Operators

## Arithmetic Operators

Arithmetic Operators are used to perform mathematical operations such as (+, -, *, /, etc.).

## Relational Operators

Relational operators are used to creating a test expression that controls the program flow. Relational operators are also called as a boolean expression because relational operator returns boolean answers. (Eg: Assume a=10, b=10, (a==b) will return true).

## Logical Operators

The logical operator is a word or symbol which is used to connect two or more expressions. The logical operator is mainly used to control the program flow. Common logical operators are AND, OR, and NOT.

## Bitwise Operators

Bitwise operators are used to changing individual bits in an operand. Bitwise operators perform on bit patterns or binary numerals that involve the manipulation of individual bits.

## Assignment Operators

Assignment operators are used to assign value to a variable. The commonly used assignment operator is =.