Searching...
Sunday, 15 July 2018

C Language Arithmetic Operator



Arithmetic operator





Arithmetic operator in c language
Type of arithmetic operator in c language

+
Adds two operands.
A + B = 30
Subtracts second operand from the first.
A − B = -10
*
Multiplies both operands.
A * B = 200
/
Divides numerator by de-numerator.
B / A = 2
%
Modulus Operator and remainder of after an integer division.
B % A = 0
++
Increment operator increases the integer value by one.
A++ = 11
--
Decrement operator decreases the integer value by one.
A-- = 9

It’s called arithmetic operator use + operator to addition two value
Use – subtraction operator you can subtract two values
Use * multiplication operator you can multiply two numbers
Use / divides operator you can divide two and find de-numerator
% modulus operator increase the integer value by one
Use ++ Its increment operator
Use -- Its decrements operator

Arithmetic operator are use in c language and use as well as other popular languages like a php,java,c++,c# and more other computer languages its use methods is same with all languages take two operands and you can perform any task in two integer values +,-,*,% and / it’s more important operator in computer languages you should must learn these operator its very easy to learn and easy to perform.

Example:

Addition
A+B=30
Subtraction
A-B=10
Multiplication
A*B=200
Divides
A/B=2
Modulus
A%B=0
Increment operator
A++=11
Decrement operator
A--=9
Use these operator same methods for all computer programming language
Like this



4 komentar: