Different types of operators

Some of the operators are:
  • Arithmetic operator: The operators which are is used to perform mathematical operations are arithmetic operators.
    • The various arithmetical operators are:
      • + for addition
      • - for subtraction
      • * for multiplication
      • / for division
      • % for modulus (modulo division-returns remainder)
    • Logical operator: The operators which are used perform test on multiple relations is known as logical operators.
      • The logical operators are:
        • && - AND
        • II - OR
        • ! - NOT
    • Relational operator: The operators which are used to compares the values of  two or more quantity are relational operator. They return either TRUE or FALSE in a logical form.
      • The relational operators are:
        • > greater than
        • < less than
        • <= less than or equal to
        • >=greater than or equal to
        • = = equal to
        • ! = not equal to
        • < > not equal to
    • Assignment operator: The operator which is used to assign a constant or variable to a variable is assignment operator.
      • the assignment operator
        • eg: LET a = 5

      Share :

      Twitter
      Back To Top

      facebook main

      counter

      Powered by Blogger.