C Programming Operators

1. C Arithmetic Operators

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

C Arithmetic Operators

2. 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.

3. C Assignment Operators

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

C Assignment Operators

4. 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.

C Relational Operators

5. C Logical Operators

An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false.