Wednesday, 12 August 2015

Arithmetic Operators in C language

Arithmetic Operators in C language:-

In C language has following arithmetic Operators:

+   Plus   
-    Minus 
*   Multiply 
/    Divide 
%  Modulus 


+ Plus Operator:-

It is used for add two operands 
like
a=90;
b=10;
c=a+b; Result c=100

- Minus Operator:-

It is used for Subtract  1st operand to 2nd Operand 
like:
a=90;
b=10;
c=a-b; Result c=80

*  Multiply  Operator:-

It is used for Multiply two operands 
like
a=90;
b=10;
c=a*b; Result c=900

/ Divide  Operator:-

It is used for divide 1st operand to second operand
like
a=90;
b=10;
c=a/b;  Result c=9

% Modulus  Operator:-

It is used for calculating remainder 
like
a=90;
b=10;
c=a%b;  Result c=0








No comments:

Post a Comment