Arithmetic Operator are those operator which are used to perform arithmetic operation, possible arithmetic operator are +, - , / , * ,%. Precedence of arithmetic operator are as follow-:
* , / ,% -: I
+ -: II
- -: III
The Division operator [/],gives quotient while Modulus operator [%] gives remainder.
Example-:
5*2=10
16/3=5
18%4=2
42+8=50
77-2=75
All arithmetic operator are binary in nature.All operator may applied on integer as well as floating point value but modulus operator does not work on floating point value.
ads
are you learning from my blog...
ReplyDelete