Sunday

Operators

Operator: (LARACIBUS)


     Logical operators: (B)

     Arithmetic operators: (B)

     Relational operators: (B)

     Assignment operators: (B)

     Conditional operators: (T)

     Increment and decrement operators: (U)

     Bitwise operators: (B)

     Special operators:

      Unary(U): operator has only one operand.

           Syntax:
                  <operator> <operand>;
                                    or
                  <operand> <operator>;

       Binary(B): operator has two operands.

            Syntax:
                   <operand1> operator <operand2>;

       Ternary(T): operator has three operands.

            Syntax:
                   <Variable> = <(condition)>? <true part of condition> :
                   <false part of condition>;

                             

No comments:

Post a Comment