Operators in C are symbols that tell the compiler to perform specific mathematical, relational, or logical operations. Operators are essential components of expressions and they act on operands (variables or values) to produce a result.

 

C Arithmetic Operators

 

An arithmetic operator performs mathematical operations such as addition, subtraction, multiplication, division etc on numerical values (constants and variables).

 

C Increment and Decrement Operators

 

C programming has two operators increment ++ and decrement  to change the value of an operand (constant or variable) by 1.

Increment ++ increases the value by 1 whereas decrement  decreases the value by 1. These two operators are unary operators, meaning they only operate on a single operand.

 

C Relational Operators

 

A relational operator checks the relationship between two operands. If the relation is true, it returns 1; if the relation is false, it returns value 0.

Relational operators are used in decision making and loops.

C Logical Operators

 

An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false. Logical operators are commonly used in decision making in C programming.

    

C Bitwise Operators

 

During computation, mathematical operations like: addition, subtraction, multiplication, division, etc are converted to bit-level which makes processing faster and saves power.

Bitwise operators are used in C programming to perform bit-level operations.

C Assignment Operators

 

An assignment operator is used for assigning a value to a variable. The most common assignment operator is =