Operators in C Programming

Operators in C Programming Language

The symbols which are used to perform logical and mathematical operations in a C program are called C operators. C includes a large number of operators which fall into different categories.

Types of Operators in C Programming

Arithmetic Operators

Relational Operators

Logical Operators

Assignment Operators

Increment and Decrement Operators

Conditional Operator

Bitwise Operators

Special Operators

Arithmetic Operators in C Programming

Arithmetic Operators are used to performing mathematical calculations like addition (+), subtraction (-), multiplication (*), division (/) and modulus (%).

Relational Operators in C Programming

Relational operators are symbols that are used to test the relationship between two variables, or between a variable and a constant. The following table shows all relation operators supported by C.

Logical Operators in C Programming

These operators are used to perform logical operations on the given two variables. C language supports following 3 logical operators. Suppose a = 1 and b = 0,