**Operators in C**

There are several operators present in C. They may be classified as follows:

**Arithmetic Operators:**

These operators are used to perform arithmetic operations like addition, subtraction etc. The following table describes the arithmetic operators in descending order of priority.

Operators | Description |

*, /, % | Multiplication, Division, Modular division |

+, - | Addition, Subtraction |

= | Assignment |

Modular division (%) : returns the remainder after division.

**Relational Operators:**

These operators are used for comparison between values of two variables. The operators are as follows:

- Is Equal To : == :
- Is Not Equal To : != :
- Is Greater Than: > :
- Is Less Than : < :
- Is Greater Than Equal To: >= :
- Is Less Than Equal To : <= :

**Logical Operators:**

These operators are used to join multiple conditions so that they may be placed in the same conditional statement. The operators are as follows:

- AND Operator: &&:
- OR Operator: || :
- NOT Operator: ! :

**Bitwise Operator:**

These operators are used to operate on data at the bit level, i.e. these operators are used too manipulate the bits of a variable. These operators are as follows:

- Bitwise AND Operator: & :
- Bitwise OR Operator: | :
- Bitwise XOR Operator: ^ :
- One’s Complement Operator: ~ :
- Right Shift Operator: >> :
- Left Shift Operator: << :

**About our authors**: Team EQA

You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.

Learn on Youtube

Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions