Arithmetic Operators ...........



Arithmetic Operators:



   These Operators are used to perform arithmetic operations such as addition, subtraction, etc.

The following are Arithmetic Operators

Operator
Functionality
Example
+
Addition
4 + 3 = 7
-
Subtraction
4 – 3 = 1
*
Multiplication
4 * 3 = 12
/
Division
4 / 3 = 1 (here remainder deprecated.)
%
Gives Remainder in Integers Division
4 % 3 = 1
(Displays only remainder.)

 

Hierarchy of Operators: - 
 
   If an expression includes all arithmetic operand i.e. +, -, *, (,) .... Then the operations will be evaluated in the following priority.

            Priority                  Operators              Description

                   1st                        (   )                        Braces

                   2nd                       *, /, %                   Multi, division, mod

                   3rd                        +, -                        add, subtract

                   4th                        =                           assignment

          Where there are more operators with same priority in an equation then they are performed left to right.