Using Operators in C Language to manipulate Data & Variables

C language supports built-in operators. There are different types of operators in C language like arithmetic, logical, bitwise & shift operators. The operator tells the compiler to perform a certain mathematical or logical manipulation.

Arithmetic Operators

Arithmetic operators in C language are used to carry arithmetic operations. The binary arithmetic operators used in C language are '+', '-', '*', '/' & '%'. These Arithmetic operators in C are binary operators which means they operate on two operands. For Example,

OperatorDescriptionExample
+Adds two operands10 + 2 = 12
-Subtracts two operands10 - 2 = 8
*Multiply two operands10 * 2 = 20
/Divide two operands10/2 = 5
%Modulus - It returns the remainder10%4 = 2