C language has a big set of built-in operators. An operator is a symbol to perform some mathematical or logical operations with data and variables.
Operators can be classified into the following types:
- Arithmetic Operators
- Logical Operators
- Relational Operators
- Assignments Operators
- Bitwise Operators
Arithmetic Operators :
Arithmetic operators are used for mathematical operations in c.

Example: Arithmetic Operator
#include<stdio.h>
int main()
{
int a= 10, b= 5 ,c;
c = a + b; // addition of two variables
printf(“ The addition of a and b: %d”, c);
c = a – b; // subtraction of two variables
printf(“\n The subtraction of a and b: %d”, c);
c = a*b; // Multiplication of two variables
printf(“\n The multiplication of a and b: %d”, c);
c = a/b; // Division of two variables
printf(“\n The division of a and b: %d”, c);
c = a%b ; // Remainder after divided by b
printf(“\n The remainder of a and b: %d”, c);
return o;
}
The addition of a and b: 15
The subtraction of a and b: 5
The multiplication of a and b: 50
The division of a and b: 2
The remainder of a and b: 0
Relational Operators:
Relational operators are used to checking relations between two operands. If the relation is true it returns 1, else it returns 0.

Example 2: Relational Operators
#include <stdio.h>
int main(void)
{
int a = 4, b=4, c=8;
printf(“%d == %d is %d”, a,b ,a==b);
printf(“\n%d == %d is %d”, a,c ,a==c);
printf(“\n%d != %d is %d”, a,b ,a!=b);
printf(“\n%d != %d is %d”, a,c ,a!=b);
printf(“\n%d < %d is %d”, a,b ,a<b);
printf(“\n%d < %d is %d”, a,c ,a<b);
printf(“\n%d > %d is %d”, a,b ,a>b);
printf(“\n%d > %d is %d”, a,c ,a>c);
printf(“\n%d >= %d is %d”, a,b ,a>=b);
printf(“\n%d >= %d is %d”, a,c ,a>=c);
printf(“\n%d <= %d is %d”, a,b ,a<=b);
printf(“\n%d <= %d is %d”, a,c ,a<=c);
return 0;
}
4 == 4 is 1
4 == 8 is 0
4 != 4 is 0
4 != 8 is 0
4 < 4 is 0
4 < 8 is 0
4 > 4 is 0
4 > 8 is 0
4 >= 4 is 1
4 >= 8 is 0
4 <= 4 is 1
4 <= 8 is 1
Logical Operators:
C language has 3 logical operators. It is basically used for decision making in c. It returns either 0 or 1 whether the decision is true or false.

Example 3: Logical Operators
#include <iostream>
int main(){
int a= 5, b= 10,c=5, d =20;
if(a==c && c<d)
printf(“a is equal to c and c less than d “);
else
printf(“AND condition not satisfied”);
if(a<b && c==d)
printf(“\na is less than b and c is equal to d”);
else
printf(“\nAND condition not satisfied”); //if one condition is false
if(a==c || c<d)
Printf(“\na is equal to c and c less than d “);
else
printf(“\nOR condition not satisfied”);
if(a<b || c==d)
printf(“\na is less than b and c is equal to d”);
else
printf(“\nOR condition not satisfied”);
if (!a)
printf(“a is zero\n”);
else
printf(“\na is not zero”);
return 0;
}
a is equal to c and c less than d AND condition not satisfied
a is equal to c and c less than d
a is less than b and c is equal to d
a is not zero
Bitwise Operators:
Bitwise operators are used in c programming to perform bit-level operations.

Example 4: Bitwise Operator

Assignment Operator:
These are the assignment operators in c programming.

Special Operators:
There are some special operators in c programming.
Comma Operators:
Comma Operators is used to linking the same expressions.
Example:
Int a, b= 5, c;
sizeof() operators:
It is a unary operator in c which is used to calculate the size of data types.
Example:
int a =10;
printf(“sizeof (a) =%d”, sizeof(a));
Output:
4