Operators:


i) Arithmetic Operators:  +, -, *, /, %, ++ (increment) ,-- (decrement)     


Code:
  
Output:

     

ii) Assignment operators: (=, += , -= , *=,  /=, %=) Assignment operators assign the values to left operand based on right operand.

Code:




Output:




iii) Comparison operators: == (compare only values not type),  === (compare both    values and type), !=, > ,<, >=, <= .
Comparison operator determine the two operands satisfied the given condition. Comparison operator return either true or false.

Code:

    Output:



    iv) Conditional operator:  (?:) Conditional operator evaluates first operand, based on that that result returns either second or third operand.

    Syntax: result = expression ? result1 : result2.

    Code:

      Output:



      v) Logical operators: && (logical and), || (logical or),  ! (logical not).


      Code:
           

       Output:
       
         

      vi)  Bitwise operators: & (and), | (or), ^ (xor) , ~ (not).


      Code:



      Output:



      vii) String operators: (+) concatination operator used to combine two or more strings.


      Code:



      Output: