## What are the basic operators available in C ? Write some expressions with these operators. |

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

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.

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 : <= :

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: ! :

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: << :

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

**Similar topics related to this section**

infinite loops, break and continue, switch statement, continue in switch and loops, basic operators, logical operators, logical vs bitwise operators, logical and bitwise or, bit shifting,

C Programming Language (Prentice Hall Software)

Let Us C Paperback - 2006 by Yashavant Kanetkar

Understanding and Using C Pointers Core techniques for memory management

Data Structures Using C and C++ Paperback - 1998

Data Structures In C Paperback - August 11, 2008 by Noel Kalicharan